Notebook
df.groupby('key1')['data1'] df.groupby('key1')[['data2']]df['data1'].groupby(df['key1']) df[['data2']].groupby(df['key1'])
f = lambda x: x.describe() grouped.apply(f)