polars.internals.series.string.StringNameSpace.strip#

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

Remove leading and trailing whitespace.

Parameters:
matches

An optional single character that should be trimmed