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

Function test_repartition_input_errors

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

Source from the content-addressed store, hash-verified

2325
2326
2327def test_repartition_input_errors():
2328 df = pd.DataFrame({"x": [1, 2, 3]})
2329 ddf = dd.from_pandas(df, npartitions=1)
2330 with pytest.raises(ValueError):
2331 ddf.repartition(npartitions=5, divisions=[None, None])
2332 with pytest.raises(ValueError):
2333 ddf.repartition(npartitions=5, partition_size="5MiB")
2334
2335
2336def test_embarrassingly_parallel_operations():

Callers

nothing calls this directly

Calls 1

repartitionMethod · 0.45

Tested by

no test coverage detected