MCPcopy
hub / github.com/dask/dask / test_aggregation

Function test_aggregation

dask/bag/tests/test_bag.py:412–417  ·  view source on GitHub ↗
(npartitions)

Source from the content-addressed store, hash-verified

410
411@pytest.mark.parametrize("npartitions", [1, 3, 4])
412def test_aggregation(npartitions):
413 L = list(range(15))
414 b = db.range(15, npartitions=npartitions)
415 assert_eq(b.mean(), sum(L) / len(L))
416 assert_eq(b.sum(), sum(L))
417 assert_eq(b.count(), len(L))
418
419
420@pytest.mark.parametrize("npartitions", [1, 10])

Callers

nothing calls this directly

Calls 5

assert_eqFunction · 0.90
sumFunction · 0.50
meanMethod · 0.45
sumMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…