Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy shape

>>> a = np.array([(1, 2), (3, 4)], dtype=[('x', 'i4'), ('y', 'i4')])
>>> np.shape(a)
(2,)
>>> a.shape
(2,)
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy #shape
ADD COMMENT
Topic
Name
8+5 =