modin.pandas.Series.str.rstrip¶
- Series.str.rstrip(to_strip=None)[source]¶
Remove trailing characters.
Strip whitespaces (including newlines) or a set of specified characters from each string in the Series/Index from right side. Replaces any non-strings in Series with NaNs. Equivalent to str.rstrip().
- Parameters:
to_strip (str or None, default None) – Specifying the set of characters to be removed. All combinations of this set of characters will be stripped. If None then whitespaces are removed.
- Return type:
Series or Index of object
See also
Series.str.stripRemove leading and trailing characters in Series/Index.
Series.str.lstripRemove leading characters in Series/Index.
Series.str.rstripRemove trailing characters in Series/Index.
Examples