polars.LazyFrame.clone#
- LazyFrame.clone() Self [source]#
Very cheap deepcopy/clone.
See also
clear
Create an empty copy of the current LazyFrame, with identical schema but no data.
Examples
>>> lf = pl.LazyFrame( ... { ... "a": [None, 2, 3, 4], ... "b": [0.5, None, 2.5, 13], ... "c": [True, True, False, None], ... } ... ) >>> lf.clone() <LazyFrame [3 cols, {"a": Int64 … "c": Boolean}] at ...>