Skip to content

Make the root column name uppercase

Source code

Description

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

Usage

<Expr>$name$to_uppercase()

Value

Expr

Examples

library("polars")

pl$DataFrame(Alice = 1:3)$with_columns(pl$col("Alice")$name$to_uppercase())
#> shape: (3, 2)
#> ┌───────┬───────┐
#> │ Alice ┆ ALICE │
#> │ ---   ┆ ---   │
#> │ i32   ┆ i32   │
#> ╞═══════╪═══════╡
#> │ 1     ┆ 1     │
#> │ 2     ┆ 2     │
#> │ 3     ┆ 3     │
#> └───────┴───────┘