numpy.ndarray.compress#

Learn | NEPs | User Guide | API reference | Building from source | Development | Release notes | NumPy’s module structure | Array objects | The N-dimensional array (ndarray) | 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) | NumPy C-API | Array API standard compatibility | CPU/SIMD optimizations | Thread Safety | Global Configuration Options | NumPy security | Testing guidelines

numpy.ndarray.compress

#

method

ndarray.compress(condition, axis=None, out=None)

#

Return selected slices of this array along given axis.

Refer to

numpy.compress

for full documentation.

See also

numpy.compress

equivalent function

‹ 1 1 ›

Tin khác

numpy.ndarray.__array_wrap__

numpy.ndarray.__class_getitem__

Status of numpy.distutils and migration advice

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

⌂num
1/1