Skip to content

Convert an existing DataFrame to a LazyFrame

Source code

Description

Start a new lazy query from a DataFrame.

Usage

<DataFrame>$lazy()

Value

A LazyFrame

Examples

library("polars")

as_polars_df(iris)$lazy()
#> polars LazyFrame
#>  $explain(): Show the optimized query plan.
#> 
#> Naive plan:
#> DF ["Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width"]; PROJECT */5 COLUMNS; SELECTION: None