/dports/math/py-pandas/pandas-1.2.5/pandas/tests/arrays/categorical/ |
H A D | test_take.py | 23 def test_take_bounds(self, allow_fill): argument 26 if allow_fill: 31 cat.take([4, 5], allow_fill=allow_fill) 33 def test_take_empty(self, allow_fill): argument 36 if allow_fill: 41 cat.take([0], allow_fill=allow_fill) 45 result = cat.take([0, 1, 2], allow_fill=False) 53 result = cat.take([1, 0], allow_fill=False) 60 result = cat.take([0, -1, -1], allow_fill=True) 67 result = cat.take([0, -1, 1], allow_fill=True, fill_value=-1) [all …]
|
H A D | conftest.py | 5 def allow_fill(request): function
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/ |
H A D | test_take.py | 401 result = algos.take(arr, [0, -1], allow_fill=True, fill_value=0) 412 result = algos.take(arr, [0, -1], axis=1, allow_fill=True, fill_value=0) 418 algos.take(arr, [0, 3], axis=1, allow_fill=True, fill_value=0) 429 algos.take(arr, [2, 3], allow_fill=True) 433 algos.take(arr, [2, 3], allow_fill=False) 441 algos.take(arr, indexer, allow_fill=True) 448 def test_take_empty(self, allow_fill): argument 451 result = algos.take(arr, [], allow_fill=allow_fill) 459 algos.take(arr, [0], allow_fill=allow_fill) 462 result = algos.take(np.array([]), [-1, -1], allow_fill=True, fill_value=0.0)
|
/dports/math/py-pandas/pandas-1.2.5/pandas/core/arrays/ |
H A D | masked.py | 279 allow_fill: bool = False, 286 self._data, indexer, fill_value=data_fill_value, allow_fill=allow_fill 289 mask = take(self._mask, indexer, fill_value=True, allow_fill=allow_fill) 295 if allow_fill and notna(fill_value):
|
H A D | _mixins.py | 64 allow_fill: bool = False, 68 if allow_fill: 74 allow_fill=allow_fill,
|
H A D | interval.py | 604 other.codes, allow_fill=True, fill_value=other.categories._na_value 863 def take(self, indices, *, allow_fill=False, fill_value=None, axis=None, **kwargs): argument 912 if allow_fill: 916 self._left, indices, allow_fill=allow_fill, fill_value=fill_left 919 self._right, indices, allow_fill=allow_fill, fill_value=fill_right
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/extension/arrow/ |
H A D | arrays.py | 141 def take(self, indices, allow_fill=False, fill_value=None): argument 144 if allow_fill and fill_value is None: 147 result = take(data, indices, fill_value=fill_value, allow_fill=allow_fill)
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/arrays/ |
H A D | test_datetimelike.py | 150 arr.take([0, 1], allow_fill=True, fill_value=fill_value) 157 result = arr.take([-1, 1], allow_fill=True, fill_value=None) 174 arr1d.take([-1, 1], allow_fill=True, fill_value="foo") 770 arr.take([-1, 1], allow_fill=True, fill_value=now) 776 arr.take([-1, 1], allow_fill=True, fill_value=value) 781 arr.take([-1, 1], allow_fill=True, fill_value=value) 944 arr.take([0, 1], allow_fill=True, fill_value=value) 949 arr.take([0, 1], allow_fill=True, fill_value=value) 954 arr.take([-1, 1], allow_fill=True, fill_value=value) 991 arr.take([-1, 1], allow_fill=True, fill_value=value) [all …]
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/extension/base/ |
H A D | getitem.py | 295 result = data.take([0, -1], allow_fill=True, fill_value=na_value) 305 result = empty.take([-1], allow_fill=True) 328 result = array.take([-1, 1], fill_value=fill_value, allow_fill=True) 334 data.take([0, -2], fill_value=na_value, allow_fill=True) 337 def test_take_out_of_bounds_raises(self, data, allow_fill): argument 340 arr.take(np.asarray([0, 3]), allow_fill=allow_fill)
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/extension/decimal/ |
H A D | array.py | 121 def take(self, indexer, allow_fill=False, fill_value=None): argument 125 if allow_fill and fill_value is None: 128 result = take(data, indexer, fill_value=fill_value, allow_fill=allow_fill)
|
/dports/x11-toolkits/gtk40/gtk-4.4.1/gtk/ |
H A D | gtkcssbordervalue.c | 178 gboolean allow_fill) in _gtk_css_border_value_parse() argument 185 if (allow_fill) in _gtk_css_border_value_parse() 211 if (allow_fill && !result->fill) in _gtk_css_border_value_parse()
|
H A D | gtkcssbordervalueprivate.h | 38 gboolean allow_fill);
|
/dports/x11-toolkits/gtk30/gtk+-3.24.31/gtk/ |
H A D | gtkcssbordervalue.c | 171 gboolean allow_fill) in _gtk_css_border_value_parse() argument 178 if (allow_fill) in _gtk_css_border_value_parse() 204 if (allow_fill && !result->fill) in _gtk_css_border_value_parse()
|
H A D | gtkcssbordervalueprivate.h | 36 gboolean allow_fill);
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/extension/list/ |
H A D | array.py | 69 def take(self, indexer, allow_fill=False, fill_value=None): argument 79 if allow_fill:
|
/dports/math/py-pandas/pandas-1.2.5/pandas/core/internals/ |
H A D | managers.py | 259 return algos.take_1d(dtypes, self.blknos, allow_fill=False) 1347 allow_fill = fill_value is not lib.no_default 1350 slice_or_indexer, self.shape[0], allow_fill=allow_fill 1362 elif not allow_fill or self.ndim == 1: 1363 if allow_fill and fill_value is None: 1366 if not allow_fill and only_slice: 1389 self.blknos, slobj, fill_value=-1, allow_fill=allow_fill 1392 self.blklocs, slobj, fill_value=-1, allow_fill=allow_fill 1958 def _preprocess_slice_or_indexer(slice_or_indexer, length: int, allow_fill: bool): 1971 if not allow_fill:
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/extension/json/ |
H A D | array.py | 128 def take(self, indexer, allow_fill=False, fill_value=None): 138 if allow_fill:
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/arrays/sparse/ |
H A D | test_array.py | 278 result = a.take([0, 1], allow_fill=True, fill_value=np.nan) 320 result = sparse.take(np.array([1, 0, -1]), allow_fill=True) 325 result = sparse.take(np.array([1, 0, -1]), allow_fill=False, fill_value=True) 331 sparse.take(np.array([1, 0, -2]), allow_fill=True) 334 sparse.take(np.array([1, 0, -5]), allow_fill=True) 342 sparse.take(np.array([1, 5]), allow_fill=True) 352 result = sparse.take(np.array([1, 0, -1]), allow_fill=True) 360 result = sparse.take(np.array([1, 0, -1]), allow_fill=False, fill_value=True) 366 sparse.take(np.array([1, 0, -2]), allow_fill=True) 368 sparse.take(np.array([1, 0, -5]), allow_fill=True)
|
/dports/graphics/py-geopandas/geopandas-0.10.2/geopandas/ |
H A D | array.py | 945 def take(self, indices, allow_fill=False, fill_value=None): argument 948 if allow_fill: 956 result = take(self.data, indices, allow_fill=allow_fill, fill_value=fill_value) 957 if allow_fill and fill_value is None:
|
/dports/devel/py-pint-pandas/Pint-Pandas-0.2/pint_pandas/ |
H A D | pint_array.py | 337 def take(self, indices, allow_fill=False, fill_value=None): argument 386 if allow_fill and fill_value is None: 391 result = take(data, indices, fill_value=fill_value, allow_fill=allow_fill)
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/indexes/categorical/ |
H A D | test_indexing.py | 27 result = idx.take(np.array([1, 0, -1]), allow_fill=False, fill_value=True) 52 result = idx.take(np.array([1, 0, -1]), allow_fill=False, fill_value=True) 92 result = idx.take(np.array([1, 0, -1]), allow_fill=False, fill_value=True)
|
H A D | test_astype.py | 28 expected = ii.take([0, 1, -1], allow_fill=True, fill_value=np.nan)
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/arrays/interval/ |
H A D | test_interval.py | 95 expected = a.take([-1, -1, 0], allow_fill=True) 99 expected = a.take([1, 2, -1], allow_fill=True)
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/indexes/multi/ |
H A D | test_take.py | 62 result = idx.take(np.array([1, 0, -1]), allow_fill=False, fill_value=True)
|
/dports/math/py-pandas/pandas-1.2.5/pandas/core/ |
H A D | algorithms.py | 1570 def take(arr, indices, axis: int = 0, allow_fill: bool = False, fill_value=None): 1649 if allow_fill: 1653 arr, indices, axis=axis, allow_fill=True, fill_value=fill_value 1662 arr, indexer, axis: int = 0, out=None, fill_value=np.nan, allow_fill: bool = True 1699 return arr.take(indexer, fill_value=fill_value, allow_fill=allow_fill) 1709 if not allow_fill:
|