polars.Expr.str.to_lowercase#
- Expr.str.to_lowercase() Expr [source]#
Modify strings to their lowercase equivalent.
Examples
>>> df = pl.DataFrame({"foo": ["CAT", "DOG"]}) >>> df.with_columns(foo_lower=pl.col("foo").str.to_lowercase()) shape: (2, 2) ┌─────┬───────────┐ │ foo ┆ foo_lower │ │ --- ┆ --- │ │ str ┆ str │ ╞═════╪═══════════╡ │ CAT ┆ cat │ │ DOG ┆ dog │ └─────┴───────────┘