Skip to content

Reverse the LazyFrame

Description

Reverse the LazyFrame

Usage

<LazyFrame>$reverse()

Value

A polars LazyFrame

Examples

library("polars")

lf <- pl$LazyFrame(key = c("a", "b", "c"), val = 1:3)
lf$reverse()$collect()
#> shape: (3, 2)
#> ┌─────┬─────┐
#> │ key ┆ val │
#> │ --- ┆ --- │
#> │ str ┆ i32 │
#> ╞═════╪═════╡
#> │ c   ┆ 3   │
#> │ b   ┆ 2   │
#> │ a   ┆ 1   │
#> └─────┴─────┘