intent: Python Pandas: Multiple aggregations of the same column
rewritten_intent: apply two different aggregating functions `mean` and `sum` to the same column `dummy` in pandas data frame `df`
snippet: df.groupby('dummy').agg({'returns': [np.mean, np.sum]})