MCPcopy
hub / github.com/pydata/xarray / ffill

Function ffill

xarray/core/missing.py:440–455  ·  view source on GitHub ↗

forward fill missing values

(arr, dim=None, limit=None)

Source from the content-addressed store, hash-verified

438
439
440def ffill(arr, dim=None, limit=None):
441 """forward fill missing values"""
442
443 axis = arr.get_axis_num(dim)
444
445 # work around for bottleneck 178
446 _limit = limit if limit is not None else arr.shape[axis]
447
448 return apply_ufunc(
449 push,
450 arr,
451 dask="allowed",
452 keep_attrs=True,
453 output_dtypes=[arr.dtype],
454 kwargs=dict(n=_limit, axis=axis),
455 ).transpose(*arr.dims)
456
457
458def bfill(arr, dim=None, limit=None):

Callers 1

ffillMethod · 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…