pyspark.sql.functions.trim

pyspark.sql.functions.trim(col: ColumnOrName) → pyspark.sql.column.Column

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