Polars LazyFrame class (polars_lazy_frame
)
Description
Representation of a Lazy computation graph/query against a DataFrame. This allows for whole-query optimisation in addition to parallelism, and is the preferred (and highest-performance) mode of operation for polars.
Usage
pl$LazyFrame(..., .schema_overrides = NULL, .strict = TRUE)
Arguments
Details
The pl$LazyFrame(…)
function is a shortcut for
pl$DataFrame(…)$lazy()
.
Value
A polars LazyFrame
See Also
-
\
: Materialize a LazyFrame into a DataFrame.$collect()
Examples
#> <polars_lazy_frame at 0x55e33399dd98>
#> <polars_lazy_frame at 0x55e333b2fee8>
# Constructing a LazyFrame from a list:
data <- list(a = 1:2, b = 3:4)
# Using dynamic dots feature
pl$LazyFrame(!!!data)
#> <polars_lazy_frame at 0x55e333cf4a38>