(array, n, axis, method="blelloch")
| 884 | |
| 885 | |
| 886 | def 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 | |
| 898 | def _first_last_wrapper(array, *, axis, op, keepdims): |
searching dependent graphs…