Skip to main content
Back to top
Ctrl
+
K
User Guide
API reference
Building from source
Development
Release notes
Learn
More
NEPs
GitHub
User Guide
API reference
Building from source
Development
Release notes
Learn
NEPs
GitHub
Section Navigation
NumPy’s module structure
Array objects
The N-dimensional array (
ndarray
)
Scalars
Data type objects (
dtype
)
numpy.dtype
numpy.dtype.type
numpy.dtype.kind
numpy.dtype.char
numpy.dtype.num
numpy.dtype.str
numpy.dtype.name
numpy.dtype.itemsize
numpy.dtype.byteorder
numpy.dtype.fields
numpy.dtype.names
numpy.dtype.subdtype
numpy.dtype.shape
numpy.dtype.hasobject
numpy.dtype.flags
numpy.dtype.isbuiltin
numpy.dtype.isnative
numpy.dtype.descr
numpy.dtype.alignment
numpy.dtype.base
numpy.dtype.metadata
numpy.dtype.newbyteorder
numpy.dtype.__reduce__
numpy.dtype.__setstate__
numpy.dtype.__class_getitem__
numpy.dtype.__ge__
numpy.dtype.__gt__
numpy.dtype.__le__
numpy.dtype.__lt__
Iterating over arrays
Standard array subclasses
Masked arrays
The array interface protocol
Datetimes and timedeltas
Universal functions (
ufunc
)
Routines and objects by topic
Typing (
numpy.typing
)
Packaging (
numpy.distutils
)
NumPy C-API
Array API standard compatibility
CPU/SIMD optimizations
Global state
NumPy security
Status of
numpy.distutils
and migration advice
numpy.distutils
user guide
NumPy and SWIG
NumPy reference
Data type objects (
dtype
)
numpy.dtype....
numpy.dtype.__setstate__
#
method
dtype.
__setstate__
(
)
#
On this page
dtype.__setstate__