This is documentation for an old release of NumPy (version 1.7.0). Read this page Search for this page in the documentation of the latest stable release (version > 1.17).
numpy.ma.MaskedArray.__new__
-
static MaskedArray.__new__(data=None, mask=False, dtype=None, copy=False, subok=True, ndmin=0, fill_value=None, keep_mask=True, hard_mask=None, shrink=True, **options)[source]
Create a new masked array from scratch.
Notes
A masked array can also be created by taking a .view(MaskedArray).