numpy.ma.filled

numpy.ma.filled(a, fill_value=None)

Return a as an array where masked data have been replaced by value.

If a is not a MaskedArray, a itself is returned. If a is a MaskedArray and fill_value is None, fill_value is set to a.fill_value.

Parameters:

a : maskedarray or array_like

An input object.

fill_value : {var}, optional

Filling value. If None, the output of get_fill_value(a) is used instead.

Returns:

a : array_like

Previous topic

numpy.ma.compressed

Next topic

numpy.ma.MaskedArray.compressed

This Page

Quick search