how to use numpy by python code example
Example 1: how to import numpy array in python
>>> import numpy as np
>>> a = np.array([0, 1, 2, 3])
>>> a
array([0, 1, 2, 3])
Example 2: numpy.array
import numpy as np
np.array(['A', 'B', 'C'])
>>> import numpy as np
>>> a = np.array([0, 1, 2, 3])
>>> a
array([0, 1, 2, 3])
import numpy as np
np.array(['A', 'B', 'C'])