Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy shape get

>>> np.shape(np.eye(3))
(3, 3)
>>> np.shape([[1, 2]])
(1, 2)
>>> np.shape([0])
(1,)
>>> np.shape(0)
()
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy #shape
ADD COMMENT
Topic
Name
1+1 =