numpy.ma.masked_array.data
property
-
property masked_array.data
-
Returns the underlying data, as a view of the masked array.
If the underlying data is a subclass of
numpy.ndarray
, it is returned as such.>>> x = np.ma.array(np.matrix([[1, 2], [3, 4]]), mask=[[0, 1], [1, 0]]) >>> x.data matrix([[1, 2], [3, 4]])
The type of the data can be accessed through the
baseclass
attribute.
© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/generated/numpy.ma.masked_array.data.html