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

Function test_quantile_tiny_partitions

dask/dataframe/tests/test_dataframe.py:1555–1560  ·  view source on GitHub ↗

See https://github.com/dask/dask/issues/6551

()

Source from the content-addressed store, hash-verified

1553
1554
1555def test_quantile_tiny_partitions():
1556 """See https://github.com/dask/dask/issues/6551"""
1557 df = pd.DataFrame({"a": [1, 2, 3]})
1558 ddf = dd.from_pandas(df, npartitions=3)
1559 r = ddf["a"].quantile(0.5).compute()
1560 assert r == 2
1561
1562
1563def test_quantile_trivial_partitions():

Callers

nothing calls this directly

Calls 2

computeMethod · 0.45
quantileMethod · 0.45

Tested by

no test coverage detected