This is documentation for an old release of NumPy (version 1.3.). Read this page in the documentation of the latest stable release (version > 1.17).
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
fill_value : {var}, optional
|
---|---|
Returns: | a : array_like |