Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get the type of numpy array

x
array([[0, 1],
       [2, 3]])
>>> x.dtype
dtype('int32')
>>> type(x.dtype)
<type 'numpy.dtype'>
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #type #numpy #array
ADD COMMENT
Topic
Name
1+9 =