pyspark.sql.functions.trim

pyspark.sql.functions.trim(col)[source]

Trim the spaces from both ends for the specified string column.

New in version 1.5.