polars.LazyFrame.inspect

LazyFrame.inspect(fmt: str = '{}') polars.internals.lazy_frame.LDF

Prints the value that this node in the computation graph evaluates to and passes on the value.

>>> df = pl.DataFrame({"foo": [1, 1, -2, 3]}).lazy()
>>> (
...     df.select(
...         [
...             pl.col("foo").cumsum().alias("bar"),
...         ]
...     )
...     .inspect()  # print the node before the filter
...     .filter(pl.col("bar") == pl.col("foo"))
... )  
<polars.internals.lazy_frame.LazyFrame object at ...>