This is documentation for an old release of NumPy (version 1.8.0). Read this page in the documentation of the latest stable release (version > 1.17).
numpy.ma.compressed¶
- numpy.ma.compressed(x)[source]¶
Return all the non-masked data as a 1-D array.
This function is equivalent to calling the “compressed” method of a MaskedArray, see MaskedArray.compressed for details.
See also
- MaskedArray.compressed
- Equivalent method.