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
- str
Column
or str Input column or strings.
- str
Examples
>>> import pyspark.sql.functions as sf >>> spark.range(1).select(sf.lcase(sf.lit("Spark"))).show() +------------+ |lcase(Spark)| +------------+ | spark| +------------+