polars.LazyFrame.describe_plan#

LazyFrame.describe_plan() str[source]#

Create a string representation of the unoptimized query plan.

Examples

>>> df = pl.DataFrame(
...     {
...         "a": ["a", "b", "a", "b", "b", "c"],
...         "b": [1, 2, 3, 4, 5, 6],
...         "c": [6, 5, 4, 3, 2, 1],
...     }
... ).lazy()
>>> df.groupby("a", maintain_order=True).agg(pl.all().sum()).sort(
...     "a"
... ).describe_plan()