<bound method GroupBy.mean of <pandas.core.groupby.generic.DataFrameGroupBy object at 0x7fef679c7ba8>> code example Example: pandas groupby mean df.groupby(['A', 'B']).mean()