I have a function group_fn that needs to be applied to each group of a pandas dataframe:
group_fn
df.groupby(group_col_name, sort=False).apply(group_fn) <