Skip to content

Explain the query plan of a Python Polars LazyFrame

Returns the polars query plan as text (via LazyFrame$explain()), e.g. to inspect which operations the optimizer keeps or removes.

explain_lazy_plan(lf_py, optimized = TRUE, engine = "streaming")
Argument Description
lf_py A Python Polars LazyFrame.
optimized Logical; whether to apply the query optimizer. Default TRUE.
engine Engine used to process the query. Default "streaming".

The query plan as a character string.