pyspark.sql.functions.lower#

pyspark.sql.functions.lower(col)[source]#

Converts a string expression to lower case.

New in version 1.5.0.

Changed in version 3.4.0: Supports Spark Connect.

Parameters
colColumn or str

target column to work on.

Returns
Column

lower case values.

Examples

>>> df = spark.createDataFrame(["Spark", "PySpark", "Pandas API"], "STRING")
>>> df.select(lower("value")).show()
+------------+
|lower(value)|
+------------+
|       spark|
|     pyspark|
|  pandas api|
+------------+