pandas dataframe groupby column get multiple means code example Example: pandas groupby mean df.groupby(['A', 'B']).mean()