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

Function test_ffill_bfill_nonans

xarray/tests/test_missing.py:509–517  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507
508@requires_bottleneck
509def test_ffill_bfill_nonans():
510 vals = np.array([1, 2, 3, 4, 5, 6], dtype=np.float64)
511 expected = xr.DataArray(vals, dims="x")
512
513 actual = expected.ffill(dim="x")
514 assert_equal(actual, expected)
515
516 actual = expected.bfill(dim="x")
517 assert_equal(actual, expected)
518
519
520@requires_bottleneck

Callers

nothing calls this directly

Calls 3

ffillMethod · 0.95
bfillMethod · 0.95
assert_equalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…