Skip to content

Make the root column name lowercase

Description

Due to implementation constraints, this method can only be called as the last expression in a chain.

Usage

<Expr>$name$to_lowercase()

Value

A polars expression

Examples

library("polars")

df <- pl$DataFrame(Foo = 1:3, BAR = 4:6)
df$select(pl$all()$name$to_lowercase())
#> shape: (3, 2)
#> ┌─────┬─────┐
#> │ foo ┆ bar │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═════╪═════╡
#> │ 1   ┆ 4   │
#> │ 2   ┆ 5   │
#> │ 3   ┆ 6   │
#> └─────┴─────┘