numpy / 1.14.5 / generated / numpy.core.defchararray.chararray.dtype.html /

numpy.core.defchararray.chararray.dtype

chararray.dtype

Data-type of the array’s elements.

Parameters: None
Returns: d : numpy dtype object

See also

numpy.dtype

Examples

>>> x
array([[0, 1],
       [2, 3]])
>>> x.dtype
dtype('int32')
>>> type(x.dtype)
<type 'numpy.dtype'>

© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.14.5/reference/generated/numpy.core.defchararray.chararray.dtype.html