how to get mean of more then 1 columns in groupby in pandas code example Example: pandas groupby mean df.groupby(['A', 'B']).mean()