NumPy

numpy.ma.MaskType.fill

method

MaskType.fill()

Scalar method identical to the corresponding array attribute.

Please see ndarray.fill.