polars.Series.str.rstrip#

Series.str.rstrip(matches: None | str = None) Series[source]#

Remove trailing whitespace.

Parameters:
matches

An optional single character that should be trimmed