Search
Searching.
- Data type objects (
dtype
) > Data type objects (dtype)...NumPy reference Array objects Data type objects (dtype)...
- Array API
...k(const PyArray_Descr *descr, void *item, const PyObject *value) New in version 2.0. Sets the memory location item of dtype descr to value. The function is equivalent to setting a single array element with a Python assignment. Returns 0...
- Array iterator API
...uction NpyIter *NpyIter_New(PyArrayObject *op, npy_uint32 flags, NPY_ORDER order, NPY_CASTING casting, PyArray_Descr *dtype) Creates an iterator for the given numpy array object op. Flags that may be passed in flags are any combination of...
- Array objects
...ons Special methods Scalars Built-in scalar types Attributes Indexing Methods Defining new types Data type objects (dtype) Specifying and constructing data types Checking the data type dtype Data type promotion in NumPy Detailed behav...
- Byte-swapping
...e two integers, and that they are 16 bit and big-endian: >>> import numpy as np >>> big_end_arr = np.ndarray(shape=(2,),dtype='>i2', buffer=big_end_buffer) >>> big_end_arr[0] np.int16(1) >>> big_end_arr[1] np.int16(770) Note the array dty...
- Data type API
...within a given array. enumerator NPY_VSTRING The enumeration value for UTF-8 variable-width strings. Note that this dtype holds an array of references, with string data stored outside of the array buffer. Use the C API for working with...
- Data type classes (
numpy.dtypes
)...NumPy reference NumPy’s module structure Data type classes (numpy.dtypes)...
- Data type objects (
dtype
)...NumPy reference Array objects Data type objects (dtype)...
- Data type promotion in NumPy
...Data type promotion in NumPy When mixing two different data types, NumPy has to determine the appropriate dtype for the result of the operation. This step is referred to as promotion or finding the common dtype. In typical cas...
- Data types
...section shows which are available, and how to modify an array’s data-type. NumPy numerical types are instances of numpy.dtype (data-type) objects, each having unique characteristics. Once you have imported NumPy using import numpy as np yo...
- How to extend NumPy
- Importing data with
genfromtxt
- Interoperability with NumPy
- Iterating over arrays
- NpyString API
- NumPy 1.10.0 Release Notes
- NumPy 1.11.0 Release Notes
- NumPy 1.12.0 Release Notes
- NumPy 1.13.0 Release Notes
- NumPy 1.14.0 Release Notes
- NumPy 1.15.0 Release Notes
- NumPy 1.16.0 Release Notes
- NumPy 1.17.0 Release Notes
- NumPy 1.18.0 Release Notes
- NumPy 1.20.0 Release Notes
- NumPy 1.21.0 Release Notes
- NumPy 1.22.0 Release Notes
- NumPy 1.23.0 Release Notes
- NumPy 1.24 Release Notes
- NumPy 1.25.0 Release Notes
- NumPy 1.6.0 Release Notes
- NumPy 1.9.0 Release Notes
- NumPy 2.0 migration guide
- NumPy 2.0.0 Release Notes
- NumPy 2.1.0 Release Notes
- NumPy C code explanations
- numpy.char.chararray.dtype
- numpy.dtype
- numpy.dtype.byteorder
- numpy.dtype.fields
- numpy.dtype.hasobject
- numpy.dtype.itemsize
- numpy.dtype.name
- numpy.dtype.newbyteorder
- numpy.dtype.str
- numpy.dtype.subdtype
- numpy.i: a SWIG interface file for NumPy
- numpy.ma.masked_array.dtype
- numpy.ma.MaskedArray.dtype
- numpy.matrix.dtype
- numpy.memmap.dtype
- numpy.ndarray.dtype
- numpy.recarray.dtype
- NumPy: the absolute basics for beginners
- Python types and C-structures
- Scalars
- Signature file
- Standard array subclasses
- Structured arrays
- Subclassing ndarray
- The
numpy.ma
module - The N-dimensional array (
ndarray
) - Typing (
numpy.typing
) - ufunc API
- Using F2PY bindings in Python
- Working with Arrays of Strings And Bytes
- Writing your own ufunc
- Array creation
- Copies and views
- ctypes foreign function interface (
numpy.ctypeslib
) - Datetimes and timedeltas
- Extending
- Glossary
- Indexing on
ndarrays
- NumPy 1.26.0 Release Notes