Return a copy with masked fields filled with a given value. Parameters ---------- fill_value : array_like, optional The value to use for invalid entries. Can be scalar or non-scalar. If latter is the case, the filled array should
(self, fill_value=None)
| 6630 | return self._data.__len__() |
| 6631 | |
| 6632 | def filled(self, fill_value=None): |
| 6633 | """ |
| 6634 | Return a copy with masked fields filled with a given value. |
| 6635 | |
| 6636 | Parameters |
| 6637 | ---------- |
| 6638 | fill_value : array_like, optional |
| 6639 | The value to use for invalid entries. Can be scalar or |
| 6640 | non-scalar. If latter is the case, the filled array should |
| 6641 | be broadcastable over input array. Default is None, in |
| 6642 | which case the `fill_value` attribute is used instead. |
| 6643 | |
| 6644 | Returns |
| 6645 | ------- |
| 6646 | filled_void |
| 6647 | A `np.void` object |
| 6648 | |
| 6649 | See Also |
| 6650 | -------- |
| 6651 | MaskedArray.filled |
| 6652 | |
| 6653 | """ |
| 6654 | return asarray(self).filled(fill_value)[()] |
| 6655 | |
| 6656 | def tolist(self): |
| 6657 | """ |