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

Function test_repartition_freq_errors

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

Source from the content-addressed store, hash-verified

2230
2231
2232def test_repartition_freq_errors():
2233 df = pd.DataFrame({"x": [1, 2, 3]})
2234 ddf = dd.from_pandas(df, npartitions=1)
2235 with pytest.raises(TypeError) as info:
2236 ddf.repartition(freq="1s")
2237
2238 assert "only" in str(info.value)
2239 assert "timeseries" in str(info.value)
2240
2241
2242def test_repartition_freq_month():

Callers

nothing calls this directly

Calls 1

repartitionMethod · 0.45

Tested by

no test coverage detected