pyspark.sql.functions.
initcap
Translate the first letter of each word to upper case in the sentence.
Examples
>>> spark.createDataFrame([('ab cd',)], ['a']).select(initcap("a").alias('v')).collect() [Row(v='Ab Cd')]
previous
pyspark.sql.functions.format_string
next
pyspark.sql.functions.instr