polars.dataframe.group_by.GroupBy.apply#
- GroupBy.apply(function: Callable[[DataFrame], DataFrame]) DataFrame [source]#
Apply a custom/user-defined function (UDF) over the groups as a sub-DataFrame.
Deprecated since version 0.19.0: This method has been renamed to
GroupBy.map_groups()
.- Parameters:
- function
Custom function.