4.7.7.1.2.3.1.11. statsmodels.tools.grouputils.Grouping.transform_dataframe

Grouping.transform_dataframe(dataframe, function, level=0, **kwargs)[source]

Apply function to each column, by group Assumes that the dataframe already has a proper index