maxframe.liteframe.LiteFrame.str.strip#
- LiteFrame.str.strip(to_strip=None)#
Remove leading and trailing characters.
Strip whitespaces (including newlines) or a set of specified characters from each string in the Series/Index from left and right sides. Replaces any non-strings in Series with NaNs. Equivalent to
str.strip().- Parameters:
to_strip (str or None, default None) – Specifying the set of characters to be removed. All combinations of this set of characters will be stripped. If None then whitespaces are removed.
- Returns:
Series or Index with the strings being stripped from the left and right sides.
- Return type:
See also
LiteFrame.str.stripRemove leading and trailing characters in Series/Index.
LiteFrame.str.lstripRemove leading characters in Series/Index.
LiteFrame.str.rstripRemove trailing characters in Series/Index.