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

Function func

dask/dataframe/tests/test_groupby.py:167–168  ·  view source on GitHub ↗
(df)

Source from the content-addressed store, hash-verified

165 assert "b" in dir(ddf.groupby("a"))
166
167 def func(df):
168 return df.assign(b=df.b - df.b.mean())
169
170 expected = df.groupby("a").apply(func, **INCLUDE_GROUPS)
171

Calls 2

assignMethod · 0.80
meanMethod · 0.45

Tested by

no test coverage detected