MCPcopy Create free account
hub / github.com/dask/dask / test_shift_with_freq_errors

Function test_shift_with_freq_errors

dask/dataframe/tests/test_dataframe.py:4001–4007  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3999
4000
4001def 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])

Callers

nothing calls this directly

Calls 1

shiftMethod · 0.45

Tested by

no test coverage detected