I\'m struggling to figure out how to combine two different syntaxes for pandas\' dataframe.agg()
function. Take this simple data frame:
df = pd.Dat
Well, the docs on aggregate are in fact a bit lacking. There might be a way to handle this with the correct passing of arguments, and you could look into the source code of pandas for that (perhaps I will later).
However, you could easily do:
df.groupby('A').agg([np.mean, lambda x: np.std(x, ddof=0)])
And it would work just as well.