pyspark.sql.functions.rtrim

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

Trim the spaces from right end for the specified string value.