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

numpy.ma.MaskedArray.set_fill_value

MaskedArray.set_fill_value(value=None)

Set the filling value to value.

If value is None, use a default based on the data type.