Method: Polars::StringExpr#to_uppercase

Defined in:
lib/polars/string_expr.rb

#to_uppercaseExpr

Transform to uppercase variant.

Examples:

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

Returns:



473
474
475
# File 'lib/polars/string_expr.rb', line 473

def to_uppercase
  Utils.wrap_expr(_rbexpr.str_to_uppercase)
end