polars.internals.frame.GroupBy.apply

GroupBy.apply(f: Callable[[polars.internals.frame.DataFrame], polars.internals.frame.DataFrame]) polars.internals.frame.DF

Apply a function over the groups as a sub-DataFrame.

Beware, this is slow.

Parameters
f

Custom function.

Returns
DataFrame