numpy.ma.MaskedArray.__new__

method

static MaskedArray.__new__(cls, data=None, mask=False, dtype=None, copy=False, subok=True, ndmin=0, fill_value=None, keep_mask=True, hard_mask=None, shrink=True, order=None, **options)[源代码]

Create a new masked array from scratch.

Notes

A masked array can also be created by taking a .view(MaskedArray).