Read a logical plan from a JSON file to construct a LazyFrame
Description
Read a logical plan from a JSON file to construct a LazyFrame
Usage
pl$deserialize_lf(json)
Arguments
json
|
A character of the JSON representation of the logical plan. |
Value
LazyFrame
See Also
-
\
$serialize()
Examples
library("polars")
lf = pl$LazyFrame(a = 1:3)$sum()
json = lf$serialize()
pl$deserialize_lf(json)$collect()
#> shape: (1, 1)
#> ┌─────┐
#> │ a │
#> │ --- │
#> │ i32 │
#> ╞═════╡
#> │ 6 │
#> └─────┘