numpy.ma.compressed

numpy.ma.compressed(x)[源代码]

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.

参见

MaskedArray.compressed
Equivalent method.