polars.Series.str.strip#

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

Remove leading and trailing whitespace.

Parameters:
matches

An optional single character that should be trimmed