Skip to content

pd.Series.str.rjist

pandas.Series.str.rjust(width, fillchar=' ')

支持的参数:

参数 数据类型
width 整数
fillchar 包含单个字符的字符串
>>> @bodo.jit
... def f(S):
...     return S.str.rjust(10)
>>> S = pd.Series(["A", "ce", "14", " ", "@", "a n", "^ Ef"])
>>> f(S)
0             A
1            ce
2            14
3
4             @
5           a n
6          ^ Ef
dtype: object