SciPy

This is documentation for an old release of NumPy (version 1.8.1). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.chararray.itemsize

chararray.itemsize

Length of one array element in bytes.

Examples

>>>
>>> x = np.array([1,2,3], dtype=np.float64)
>>> x.itemsize
8
>>> x = np.array([1,2,3], dtype=np.complex128)
>>> x.itemsize
16

Previous topic

numpy.chararray.imag

Next topic

numpy.chararray.nbytes