pyspark.sql.functions.lcase#

pyspark.sql.functions.lcase(str)[source]#

Returns str with all characters changed to lowercase.

New in version 3.5.0.

Parameters
strColumn or str

Input column or strings.

Examples

>>> import pyspark.sql.functions as sf
>>> spark.range(1).select(sf.lcase(sf.lit("Spark"))).show()
+------------+
|lcase(Spark)|
+------------+
|       spark|
+------------+