pandas.Series.str.strip

Series.str.strip(to_strip=None)

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

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