MCPcopy Create free account
hub / github.com/numpy/numpy / filled

Method filled

numpy/ma/core.py:6432–6454  ·  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

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

Callers 15

_fix_outputFunction · 0.45
find_duplicatesFunction · 0.45
_median_nancheckFunction · 0.45
_nanmedian_smallFunction · 0.45
assert_array_compareMethod · 0.45
test_1Method · 0.45
test_4Method · 0.45
test_7Method · 0.45
filledFunction · 0.45
_comparisonMethod · 0.45
traceMethod · 0.45
takeMethod · 0.45

Calls 1

asarrayFunction · 0.70

Tested by 15

test_1Method · 0.36
test_4Method · 0.36
test_7Method · 0.36
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