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

Function return_df

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

Source from the content-addressed store, hash-verified

3259 ddf = dd.from_pandas(df, npartitions=2)
3260
3261 def return_df(x):
3262 # will create new DataFrame which columns is ['sum', 'mean']
3263 return pd.Series([x.sum(), x.mean()], index=["sum", "mean"])
3264
3265 # DataFrame to completely different DataFrame
3266 with warnings.catch_warnings():

Callers

nothing calls this directly

Calls 2

sumMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected