![]() |
VOOZH | about |
The ndarray.dtype attribute returns the data type of the array’s elements.
This attribute is read-only and cannot be modified directly.
Output :
int64
Syntax: numpy.ndarray.dtype
Parameters : None
Return : [numpy dtype object] Return the data-type of the array’s elements.
To check the data type of NumPy array elements we use ndarray.dtype attribute of the NumPy library in Python
Let us look at the example to understand it better.
Output :
float64