polars.internals.lazy_frame.LazyGroupBy.applyΒΆ

LazyGroupBy.apply(f: Callable[[polars.internals.frame.DataFrame], polars.internals.frame.DataFrame]) polars.internals.lazy_frame.LDFΒΆ

Apply a function over the groups as a new DataFrame. It is not recommended that you use this as materializing the DataFrame is quite expensive.

Parameters
f

Function to apply over the DataFrame.