pandas.core.groupby.GroupBy.aggregate

GroupBy.aggregate(func, *args, **kwargs)