polars.LazyFrame.clone#

LazyFrame.clone() LDF[source]#

Very cheap deepcopy/clone.

See also

cleared

Create an empty copy of the current LazyFrame, with identical schema but no data.

Examples

>>> df = pl.DataFrame(
...     {
...         "a": [None, 2, 3, 4],
...         "b": [0.5, None, 2.5, 13],
...         "c": [True, True, False, None],
...     }
... ).lazy()
>>> (df.clone())  
<polars.LazyFrame object at ...>