W3cubDocs

/NumPy 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.

© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.ma.compressed.html