(self)
| 2064 | assert "tc" not in actual.coords |
| 2065 | |
| 2066 | def test_resample_keep_attrs(self) -> None: |
| 2067 | times = pd.date_range("2000-01-01", freq="6h", periods=10) |
| 2068 | array = DataArray(np.ones(10), [("time", times)]) |
| 2069 | array.attrs["meta"] = "data" |
| 2070 | |
| 2071 | result = array.resample(time="1D").mean(keep_attrs=True) |
| 2072 | expected = DataArray([1, 1, 1], [("time", times[::4])], attrs=array.attrs) |
| 2073 | assert_identical(result, expected) |
| 2074 | |
| 2075 | def test_resample_skipna(self) -> None: |
| 2076 | times = pd.date_range("2000-01-01", freq="6h", periods=10) |
nothing calls this directly
no test coverage detected