pyspark.sql.functions.trim

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

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

New in version 1.5.