Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python ndim

x = np.array([1, 2, 3])
>>> x.ndim
1
>>> y = np.zeros((2, 3, 4))
>>> y.ndim
3
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #python #ndim
ADD COMMENT
Topic
Name
8+9 =