polars.Expr.str.to_lowercase#

Expr.str.to_lowercase() Expr[source]#

Transform to lowercase variant.

Examples

>>> df = pl.DataFrame({"foo": ["CAT", "DOG"]})
>>> df.select(pl.col("foo").str.to_lowercase())
shape: (2, 1)
┌─────┐
│ foo │
│ --- │
│ str │
╞═════╡
│ cat │
├╌╌╌╌╌┤
│ dog │
└─────┘