Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Converts a string expression to upper case.
For the corresponding Databricks SQL function, see upper function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.upper(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
target column to work on. |
Returns
pyspark.sql.Column: upper case values.
Examples
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame(["Spark", "PySpark", "Pandas API"], "STRING")
df.select("*", dbf.upper("value")).show()