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

Function iseven

dask/dataframe/tests/test_dataframe.py:3518–3519  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

3516 b = dd.from_pandas(a, 2)
3517
3518 def iseven(x):
3519 return x % 2 == 0
3520
3521 assert_eq(a.groupby(iseven).y.sum(), b.groupby(iseven).y.sum())
3522 assert_eq(a.y.groupby(iseven).sum(), b.y.groupby(iseven).sum())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected