Returns the underlying data, as a view of the masked array. If the underlying data is a subclass of :class:`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],
(self)
| 3690 | return self._baseclass |
| 3691 | |
| 3692 | def _get_data(self): |
| 3693 | """ |
| 3694 | Returns the underlying data, as a view of the masked array. |
| 3695 | |
| 3696 | If the underlying data is a subclass of :class:`numpy.ndarray`, it is |
| 3697 | returned as such. |
| 3698 | |
| 3699 | >>> x = np.ma.array(np.matrix([[1, 2], [3, 4]]), mask=[[0, 1], [1, 0]]) |
| 3700 | >>> x.data |
| 3701 | matrix([[1, 2], |
| 3702 | [3, 4]]) |
| 3703 | |
| 3704 | The type of the data can be accessed through the :attr:`baseclass` |
| 3705 | attribute. |
| 3706 | """ |
| 3707 | return ndarray.view(self, self._baseclass) |
| 3708 | |
| 3709 | _data = property(fget=_get_data) |
| 3710 | data = property(fget=_get_data) |