numpy.ma.asarray()

numpy.ma.asarray

numpy.ma.asarray(a, dtype=None, order=None) [source]

Convert the input to a masked array of the given data-type.

No copy is performed if the input is already an ndarray. If a is a subclass of MaskedArray, a base class MaskedArray is returned.

登录查看完整内容