Skip to content

Commit e9c1962

Browse files
authored
Fix pandas interpolate(fill_value=) error (#8139)
1 parent 71177d4 commit e9c1962

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xarray/tests/test_missing.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ def test_interpolate_pd_compat():
104104
for dim in ["time", "x"]:
105105
actual = da.interpolate_na(method=method, dim=dim, fill_value=np.nan)
106106
expected = df.interpolate(
107-
method=method, axis=da.get_axis_num(dim), fill_value=(np.nan, np.nan)
107+
method=method,
108+
axis=da.get_axis_num(dim),
108109
)
109110
# Note, Pandas does some odd things with the left/right fill_value
110111
# for the linear methods. This next line inforces the xarray
@@ -140,7 +141,8 @@ def test_interpolate_pd_compat_non_uniform_index():
140141
method="linear", dim=dim, use_coordinate=True, fill_value=np.nan
141142
)
142143
expected = df.interpolate(
143-
method=method, axis=da.get_axis_num(dim), fill_value=np.nan
144+
method=method,
145+
axis=da.get_axis_num(dim),
144146
)
145147

146148
# Note, Pandas does some odd things with the left/right fill_value

0 commit comments

Comments
 (0)