Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

build numpy array

a1D = np.array([1, 2, 3, 4])
>>> a2D = np.array([[1, 2], [3, 4]])
>>> a3D = np.array([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #build #numpy #array
ADD COMMENT
Topic
Name
6+3 =