polars.LazyFrame.lazy#
- LazyFrame.lazy() Self [source]#
Return lazy representation, i.e. itself.
Useful for writing code that expects either a
DataFrame
orLazyFrame
.- Returns:
- LazyFrame
Examples
>>> lf = pl.LazyFrame( ... { ... "a": [None, 2, 3, 4], ... "b": [0.5, None, 2.5, 13], ... "c": [True, True, False, None], ... } ... ) >>> lf.lazy() <LazyFrame [3 cols, {"a": Int64 … "c": Boolean}] at ...>