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

Function test_interpolate_duplicate_values_raises

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

Source from the content-addressed store, hash-verified

221
222
223def test_interpolate_duplicate_values_raises():
224 data = np.random.randn(2, 3)
225 da = xr.DataArray(data, coords=[("x", ["a", "a"]), ("y", [0, 1, 2])])
226 with pytest.raises(ValueError, match=r"Index 'x' has duplicate values"):
227 da.interpolate_na(dim="x", method="foo") # type: ignore[arg-type]
228
229
230def test_interpolate_multiindex_raises():

Callers

nothing calls this directly

Calls 1

interpolate_naMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…