finam.data.to_compressed#

finam.data.to_compressed(xdata, order='C')[source]#

Return all the non-masked data as a 1-D array respecting the given array order.

Parameters:
Returns:

New object with the flat shape and only unmasked data but and same type as input. Units will be taken from the input if present.

Return type:

pint.Quantity or numpy.ndarray or numpy.ma.MaskedArray

See also

numpy.ma.compressed()

Numpy routine doing the same but only for C-order.