MCPcopy
hub / github.com/numpy/numpy / filled

Method filled

numpy/ma/core.py:6632–6654  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 15

_median_nancheckFunction · 0.45
_fix_outputFunction · 0.45
find_duplicatesFunction · 0.45
_nanmedian_smallFunction · 0.45
filledFunction · 0.45
_comparisonMethod · 0.45
traceMethod · 0.45
takeMethod · 0.45
reduceMethod · 0.45
allequalFunction · 0.45
allcloseFunction · 0.45
setxor1dFunction · 0.45

Calls 1

asarrayFunction · 0.70

Tested by 15

assert_array_compareFunction · 0.36
test_filledMethod · 0.36
test_exotic_formatsMethod · 0.36
test_fromrecordsMethod · 0.36
test_dotMethod · 0.36
test_2d_with_missingMethod · 0.36
test_ediff1dMethod · 0.36
test_ediff1d_tobeginMethod · 0.36
test_ediff1d_toendMethod · 0.36
test_ediff1d_ndarrayMethod · 0.36
test_testOddFeaturesMethod · 0.36