pyspark.sql.functions.
lower
Converts a string expression to lower case.
New in version 1.5.0.
Changed in version 3.4.0: Supports Spark Connect.
Column
target column to work on.
lower case values.
Examples
>>> df = spark.createDataFrame(["Spark", "PySpark", "Pandas API"], "STRING") >>> df.select(lower("value")).show() +------------+ |lower(value)| +------------+ | spark| | pyspark| | pandas api| +------------+