pyspark.sql.functions.
trim
Trim the spaces from both ends for the specified string column.
previous
pyspark.sql.functions.translate
next
pyspark.sql.functions.upper