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

Function test_groupby_aggregate_partial_function

dask/dataframe/tests/test_groupby.py:2368–2381  ·  view source on GitHub ↗
(agg)

Source from the content-addressed store, hash-verified

2366 ],
2367)
2368def test_groupby_aggregate_partial_function(agg):
2369 pdf = pd.DataFrame(
2370 {
2371 "a": [5, 4, 3, 5, 4, 2, 3, 2],
2372 "b": [1, 2, 5, 6, 9, 2, 6, 8],
2373 }
2374 )
2375 ddf = dd.from_pandas(pdf, npartitions=2)
2376
2377 # DataFrameGroupBy
2378 assert_eq(agg(pdf.groupby("a")), agg(ddf.groupby("a")))
2379
2380 # SeriesGroupBy
2381 assert_eq(agg(pdf.groupby("a")["b"]), agg(ddf.groupby("a")["b"]))
2382
2383
2384@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

groupbyMethod · 0.95
assert_eqFunction · 0.90
aggFunction · 0.70
groupbyMethod · 0.45

Tested by

no test coverage detected