(x)
| 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(): |