Skip to content

Convert a string to lowercase

Source code

Description

Transform to lowercase variant.

Usage

<Expr>$str$to_lowercase()

Value

A polars expression

Examples

library("polars")

pl$select(
  pl$lit(c("A", "b", "c", "1", NA))$str$to_lowercase()
)$to_series()
#> shape: (5, 1)
#> ┌─────────┐
#> │ literal │
#> │ ---     │
#> │ str     │
#> ╞═════════╡
#> │ a       │
#> │ b       │
#> │ c       │
#> │ 1       │
#> │ null    │
#> └─────────┘