Skip to content

pd.Series.str.restrip

pandas.Series.str.rstrip(to_strip=None)

Supported Arguments

argument datatypes
to_strip String
>>> @bodo.jit
... def f(S):
...     return S.str.rstrip("n")
>>> S = pd.Series(["A", "ce", "14", " ", "@", "a n", "^ Ef"])
>>> f(S)
0       A
1      ce
2      14
3
4       @
5      a
6    ^ Ef
dtype: object