()
| 183 | |
| 184 | @requires_scipy |
| 185 | def test_interpolate_pd_compat_polynomial(): |
| 186 | shapes = [(8, 8), (1, 20), (20, 1), (100, 100)] |
| 187 | frac_nans = [0, 0.5, 1] |
| 188 | orders = [1, 2, 3] |
| 189 | |
| 190 | for shape, frac_nan, order in itertools.product(shapes, frac_nans, orders): |
| 191 | da, df = make_interpolate_example_data(shape, frac_nan) |
| 192 | |
| 193 | for dim in ["time", "x"]: |
| 194 | actual = da.interpolate_na( |
| 195 | method="polynomial", order=order, dim=dim, use_coordinate=False |
| 196 | ) |
| 197 | expected = df.interpolate( |
| 198 | method="polynomial", order=order, axis=da.get_axis_num(dim) |
| 199 | ) |
| 200 | np.testing.assert_allclose(actual.values, expected.values) |
| 201 | |
| 202 | |
| 203 | @requires_scipy |
nothing calls this directly
no test coverage detected
searching dependent graphs…