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

Function func

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

Source from the content-addressed store, hash-verified

144 assert "b" in dir(ddf.groupby("a"))
145
146 def func(df):
147 return df.assign(b=df.b - df.b.mean())
148
149 expected = df.groupby("a").apply(func, **INCLUDE_GROUPS)
150

Calls 2

assignMethod · 0.80
meanMethod · 0.45

Tested by

no test coverage detected