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

Function test_quantile_tiny_partitions

dask/dataframe/tests/test_dataframe.py:1537–1542  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1535
1536
1537def test_quantile_tiny_partitions():
1538 """See https://github.com/dask/dask/issues/6551"""
1539 df = pd.DataFrame({"a": [1, 2, 3]})
1540 ddf = dd.from_pandas(df, npartitions=3)
1541 r = ddf["a"].quantile(0.5).compute()
1542 assert r == 2
1543
1544
1545def test_quantile_trivial_partitions():

Callers

nothing calls this directly

Calls 2

computeMethod · 0.45
quantileMethod · 0.45

Tested by

no test coverage detected