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)
| 6430 | return self._data.__len__() |
| 6431 | |
| 6432 | def filled(self, fill_value=None): |
| 6433 | """ |
| 6434 | Return a copy with masked fields filled with a given value. |
| 6435 | |
| 6436 | Parameters |
| 6437 | ---------- |
| 6438 | fill_value : array_like, optional |
| 6439 | The value to use for invalid entries. Can be scalar or |
| 6440 | non-scalar. If latter is the case, the filled array should |
| 6441 | be broadcastable over input array. Default is None, in |
| 6442 | which case the `fill_value` attribute is used instead. |
| 6443 | |
| 6444 | Returns |
| 6445 | ------- |
| 6446 | filled_void |
| 6447 | A `np.void` object |
| 6448 | |
| 6449 | See Also |
| 6450 | -------- |
| 6451 | MaskedArray.filled |
| 6452 | |
| 6453 | """ |
| 6454 | return asarray(self).filled(fill_value)[()] |
| 6455 | |
| 6456 | def tolist(self): |
| 6457 | """ |