MCPcopy Index your code
hub / github.com/pydata/xarray / push

Function push

xarray/core/duck_array_ops.py:886–895  ·  view source on GitHub ↗
(array, n, axis, method="blelloch")

Source from the content-addressed store, hash-verified

884
885
886def push(array, n, axis, method="blelloch"):
887 if not OPTIONS["use_bottleneck"] and not OPTIONS["use_numbagg"]:
888 raise RuntimeError(
889 "ffill & bfill requires bottleneck or numbagg to be enabled."
890 " Call `xr.set_options(use_bottleneck=True)` or `xr.set_options(use_numbagg=True)` to enable one."
891 )
892 if is_duck_dask_array(array):
893 return dask_array_ops.push(array, n, axis, method=method)
894 else:
895 return _push(array, n, axis)
896
897
898def _first_last_wrapper(array, *, axis, op, keepdims):

Callers 2

_bfillFunction · 0.90
test_push_daskFunction · 0.90

Calls 2

is_duck_dask_arrayFunction · 0.90
_pushFunction · 0.85

Tested by 1

test_push_daskFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…