You are viewing documentation about an older version (1.11.1). View latest version

snowflake.snowpark.functions.upper

snowflake.snowpark.functions.upper(e: Union[Column, str]) Column[source]
Returns the input string with all characters converted to uppercase.

Unicode characters are supported.

Example:

>>> df = session.create_dataframe(['abc', 'Abc', 'aBC', 'Anführungszeichen', '14.95 €'], schema=["a"])
>>> df.select(upper(col("a"))).collect()
[Row(UPPER("A")='ABC'), Row(UPPER("A")='ABC'), Row(UPPER("A")='ABC'), Row(UPPER("A")='ANFÜHRUNGSZEICHEN'), Row(UPPER("A")='14.95 €')]
Copy