pandas.Series.str.rstrip

Series.str.rstrip(to_strip=None)

Strip whitespace (including newlines) from each string in the Series/Index from right side. Equivalent to str.rstrip().

Returns:stripped : Series/Index of objects