, 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.


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.


a : array_like

Previous topic

Next topic

This Page

Quick search