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