pandas.Series.str.rstrip

Series.str.rstrip(to_strip=None)

Strip whitespace (including newlines) from right side of each string in the array

Parameters:to_strip : str or unicode
Returns:stripped : array