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

Function bfill

xarray/core/missing.py:458–473  ·  view source on GitHub ↗

backfill missing values

(arr, dim=None, limit=None)

Source from the content-addressed store, hash-verified

456
457
458def bfill(arr, dim=None, limit=None):
459 """backfill missing values"""
460
461 axis = arr.get_axis_num(dim)
462
463 # work around for bottleneck 178
464 _limit = limit if limit is not None else arr.shape[axis]
465
466 return apply_ufunc(
467 _bfill,
468 arr,
469 dask="allowed",
470 keep_attrs=True,
471 output_dtypes=[arr.dtype],
472 kwargs=dict(n=_limit, axis=axis),
473 ).transpose(*arr.dims)
474
475
476def _import_interpolant(interpolant, method):

Callers 1

bfillMethod · 0.90

Calls 3

apply_ufuncFunction · 0.90
get_axis_numMethod · 0.45
transposeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…