apply multiple functions to multiple groupby columns,df.groupby('GRP').agg(f)