NumPy

Previous topic

numpy.ma.MaskedArray.__contains__

Next topic

numpy.ma.MaskedArray.harden_mask

This is documentation for an old release of NumPy (version 1.19). Read this page in the documentation of the latest stable release (version 2.2).

numpy.ma.MaskedArray.__setmask__

method

MaskedArray.__setmask__(self, mask, copy=False)[source]

Set the mask.