numpy.char.chararray.dtype — NumPy v2.2 Manual (original) (raw)
attribute
char.chararray.dtype#
Data-type of the array’s elements.
Warning
Setting arr.dtype
is discouraged and may be deprecated in the future. Setting will replace the dtype
without modifying the memory (see also ndarray.view and ndarray.astype).
Parameters:
None
Returns:
dnumpy dtype object
See also
Cast the values contained in the array to a new data-type.
Create a view of the same data but a different data-type.
Examples
x array([[0, 1], [2, 3]]) x.dtype dtype('int32') type(x.dtype) <type 'numpy.dtype'>
On this page