Skip to main content
Back to top
Ctrl
+
K
User Guide
API reference
Building from source
Development
Release notes
Learn
More
NEPs
Choose version
GitHub
User Guide
API reference
Building from source
Development
Release notes
Learn
NEPs
Choose version
GitHub
Section Navigation
NumPy’s module structure
Array objects
The N-dimensional array (
ndarray
)
numpy.ndarray
numpy.ndarray.flags
numpy.ndarray.shape
numpy.ndarray.strides
numpy.ndarray.ndim
numpy.ndarray.data
numpy.ndarray.size
numpy.ndarray.itemsize
numpy.ndarray.nbytes
numpy.ndarray.base
numpy.ndarray.dtype
numpy.ndarray.T
numpy.ndarray.real
numpy.ndarray.imag
numpy.ndarray.flat
numpy.ndarray.ctypes
numpy.ndarray.item
numpy.ndarray.tolist
numpy.ndarray.tostring
numpy.ndarray.tobytes
numpy.ndarray.tofile
numpy.ndarray.dump
numpy.ndarray.dumps
numpy.ndarray.astype
numpy.ndarray.byteswap
numpy.ndarray.copy
numpy.ndarray.view
numpy.ndarray.getfield
numpy.ndarray.setflags
numpy.ndarray.fill
numpy.ndarray.reshape
numpy.ndarray.resize
numpy.ndarray.transpose
numpy.ndarray.swapaxes
numpy.ndarray.flatten
numpy.ndarray.ravel
numpy.ndarray.squeeze
numpy.ndarray.take
numpy.ndarray.put
numpy.ndarray.repeat
numpy.ndarray.choose
numpy.ndarray.sort
numpy.ndarray.argsort
numpy.ndarray.partition
numpy.ndarray.argpartition
numpy.ndarray.searchsorted
numpy.ndarray.nonzero
numpy.ndarray.compress
numpy.ndarray.diagonal
numpy.ndarray.max
numpy.ndarray.argmax
numpy.ndarray.min
numpy.ndarray.argmin
numpy.ndarray.clip
numpy.ndarray.conj
numpy.ndarray.round
numpy.ndarray.trace
numpy.ndarray.sum
numpy.ndarray.cumsum
numpy.ndarray.mean
numpy.ndarray.var
numpy.ndarray.std
numpy.ndarray.prod
numpy.ndarray.cumprod
numpy.ndarray.all
numpy.ndarray.any
numpy.ndarray.__lt__
numpy.ndarray.__le__
numpy.ndarray.__gt__
numpy.ndarray.__ge__
numpy.ndarray.__eq__
numpy.ndarray.__ne__
numpy.ndarray.__bool__
numpy.ndarray.__neg__
numpy.ndarray.__pos__
numpy.ndarray.__abs__
numpy.ndarray.__invert__
numpy.ndarray.__add__
numpy.ndarray.__sub__
numpy.ndarray.__mul__
numpy.ndarray.__truediv__
numpy.ndarray.__floordiv__
numpy.ndarray.__mod__
numpy.ndarray.__divmod__
numpy.ndarray.__pow__
numpy.ndarray.__lshift__
numpy.ndarray.__rshift__
numpy.ndarray.__and__
numpy.ndarray.__or__
numpy.ndarray.__xor__
numpy.ndarray.__iadd__
numpy.ndarray.__isub__
numpy.ndarray.__imul__
numpy.ndarray.__itruediv__
numpy.ndarray.__ifloordiv__
numpy.ndarray.__imod__
numpy.ndarray.__ipow__
numpy.ndarray.__ilshift__
numpy.ndarray.__irshift__
numpy.ndarray.__iand__
numpy.ndarray.__ior__
numpy.ndarray.__ixor__
numpy.ndarray.__matmul__
numpy.ndarray.__copy__
numpy.ndarray.__deepcopy__
numpy.ndarray.__reduce__
numpy.ndarray.__setstate__
numpy.ndarray.__new__
numpy.ndarray.__array__
numpy.ndarray.__array_wrap__
numpy.ndarray.__len__
numpy.ndarray.__getitem__
numpy.ndarray.__setitem__
numpy.ndarray.__contains__
numpy.ndarray.__int__
numpy.ndarray.__float__
numpy.ndarray.__complex__
numpy.ndarray.__str__
numpy.ndarray.__repr__
numpy.ndarray.__class_getitem__
Scalars
Data type objects (
dtype
)
Data type promotion in NumPy
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
Thread Safety
Global Configuration Options
NumPy security
Status of
numpy.distutils
and migration advice
numpy.distutils
user guide
NumPy and SWIG
NumPy reference
Array objects
The N-dimensional array (
ndarray
)
numpy.ndarray.__int__
numpy.ndarray.__int__
#
method
ndarray.
__int__
(
self
)
#
On this page
ndarray.__int__