polars.LazyFrame.map

LazyFrame.map(f: Callable[[polars.internals.frame.DataFrame], polars.internals.frame.DataFrame], predicate_pushdown: bool = True, projection_pushdown: bool = True, no_optimizations: bool = False) polars.internals.lazy_frame.LDF

Apply a custom function. It is important that the function returns a Polars DataFrame.

Parameters
f

Lambda/ function to apply.

predicate_pushdown

Allow predicate pushdown optimization to pass this node.

projection_pushdown

Allow projection pushdown optimization to pass this node.

no_optimizations

Turn off all optimizations past this point.