When using df.mean() I get a result where the mean for each column is given. Now let\'s say I want the mean of the first column, and the sum of the second. Is t
df.mean()
You can try a closure:
def multi_func(functions): def f(col): return functions[col.name](col) return f df = pd.DataFrame(np.random.random((10, 2)), columns=['A', 'B']) result = df.apply(multi_func({'A': np.mean, 'B': np.sum}))