pandas.core.groupby.GroupBy.transform

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