Answers for "how to get the type of numpy array"

0

how to get the type of numpy array

x
array([[0, 1],
       [2, 3]])
>>> x.dtype
dtype('int32')
>>> type(x.dtype)
<type 'numpy.dtype'>
Posted by: Guest on January-30-2022

Code answers related to "how to get the type of numpy array"

Python Answers by Framework

Browse Popular Code Answers by Language