polars.Series.str.strip#
- Series.str.strip(characters: str | None = None) Series [source]#
Remove leading and trailing characters.
Deprecated since version 0.19.3: This method has been renamed to
strip_chars()
.- Parameters:
- characters
The set of characters to be removed. All combinations of this set of characters will be stripped. If set to None (default), all whitespace is removed instead.