Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if numpy array is 1d

>>> a = np.array([[1, 2], [3, 4]])
>>> a.ndim == 1
False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #numpy #array
ADD COMMENT
Topic
Name
6+3 =