numpy.ma.MaskedArray.__array__#
method
- ma.MaskedArray.__array__([dtype, ]*, copy=None)#
For
dtypeparameter it returns a new reference to self ifdtypeis not given or it matches array’s data type. A new array of provided data type is returned ifdtypeis different from the current data type of the array. Forcopyparameter it returns a new reference to self ifcopy=Falseorcopy=Noneand copying isn’t enforced bydtypeparameter. The method returns a new array forcopy=True, regardless ofdtypeparameter.A more detailed explanation of the
__array__interface can be found in The __array__() method.