polars.LazyFrame.with_context#

LazyFrame.with_context(other: LDF | list[LDF]) LDF#

Add an external context to the computation graph.

This allows expressions to also access columns from DataFrames that are not part of this one.

Parameters
other

One or multiple LazyFrames as external context