()
| 3999 | |
| 4000 | |
| 4001 | def test_shift_with_freq_errors(): |
| 4002 | # Other index types error |
| 4003 | df = _compat.makeDataFrame() |
| 4004 | ddf = dd.from_pandas(df, npartitions=4) |
| 4005 | pytest.raises(NotImplementedError, lambda: ddf.shift(2, freq="s")) |
| 4006 | pytest.raises(NotImplementedError, lambda: ddf.A.shift(2, freq="s")) |
| 4007 | pytest.raises(NotImplementedError, lambda: ddf.index.shift(2)) |
| 4008 | |
| 4009 | |
| 4010 | @pytest.mark.parametrize("npartitions", [1, 4, 20]) |