Skip to content

Convert a string to uppercase

Source code

Description

Transform to uppercase variant.

Usage

<Expr>$str$to_uppercase()

Value

Expr of String uppercase chars

Examples

library("polars")

pl$lit(c("A", "b", "c", "1", NA))$str$to_uppercase()$to_series()
#> polars Series: shape: (5,)
#> Series: '' [str]
#> [
#>  "A"
#>  "B"
#>  "C"
#>  "1"
#>  null
#> ]