finam.data.to_masked#
- finam.data.to_masked(data, **kwargs)[source]#
Return a masked version of the data.
- Parameters:
data (
pint.Quantity
ornumpy.ndarray
ornumpy.ma.MaskedArray
) – The reference object input.**kwargs – keyword arguments forwarded to
numpy.ma.array
- Returns:
New object with the same shape and type but as a masked array. Units will be taken from the input if present.
- Return type: