show other columns groupby mean code example Example: pandas groupby mean df.groupby(['A', 'B']).mean()