def set_fill_value(self, value=None):
target = _check_fill_value(value, self.dtype)<EOL>_fill_value = self._fill_value<EOL>if _fill_value is None:<EOL><INDENT>self._fill_value = target<EOL><DEDENT>else:<EOL><INDENT>_fill_value[()] = target<EOL><DEDENT>
Set the filling value of the masked array.

Parameters
----------
value : scalar, optional
    The new filling value. Default is None, in which case a default
    based on the data type is used.

See Also
--------
ma.set_fill_value : Equivalent function.

Examples
--------
>>> x = np.ma.array([0, 1.], fill_value=-np.inf)
>>> x.fill_value
-inf
>>> x.set_fill_value(np.pi)
>>> x.fill_value
3.1415926535897931

Reset to default:

>>> x.set_fill_value()
>>> x.fill_value
1e+20