polars.Expr.str.to_uppercase#

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

Transform to uppercase variant.

Examples

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