pyspark.sql.functions.
rtrim
Trim the spaces from right end for the specified string value.
New in version 1.5.
previous
pyspark.sql.functions.rpad
next
pyspark.sql.functions.schema_of_csv