Skip to content

pd.Series.str.partition

pandas.Series.str.partition(sep=' ', expand=True)

支持的参数

参数 数据类型
sep 字符串
expand 布尔值

注意

Bodo 目前仅支持 expand=True。

>>> @bodo.jit
... def f(S):
...     return S.str.partition()
>>> S = pd.Series(["alphabet soup is delicious", "hello     world", "goodbye"])
>>> f(S)
          0  1                  2
0  alphabet     soup is delicious
1     hello                 world
2   goodbye