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

Function test_ffill

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

Source from the content-addressed store, hash-verified

426
427@requires_numbagg_or_bottleneck
428def test_ffill():
429 da = xr.DataArray(np.array([4, 5, np.nan], dtype=np.float64), dims="x")
430 expected = xr.DataArray(np.array([4, 5, 5], dtype=np.float64), dims="x")
431 actual = da.ffill("x")
432 assert_equal(actual, expected)
433
434
435@pytest.mark.parametrize("compute_backend", [None], indirect=True)

Callers

nothing calls this directly

Calls 2

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