apache / apache/beam

Update DataFrame rsplit() api once pandas rsplit() supports regex

Open
#20,962 0 comments 1 reaction 0 assignees View on GitHub
core dataframe P3 python sub-task
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

`rsplit` API does not support regex as an argument even though its documentation [does](https://pandas.pydata.org/docs/reference/api/pandas.Series.str.rsplit.html). This issue was [filed](https://github.com/pandas-dev/pandas/issues/29633) a while ago. Once the issue is fixed, update the `rsplit` api once the fix in pandas is released.

Relevant Pandas source code:
* [rsplit](https://github.com/pandas-dev/pandas/blob/v1.4.1/pandas/core/strings/accessor.py#L853-L857) 
* [_str_rsplit](https://github.com/pandas-dev/pandas/blob/60c2940fcf28ee84b64ebda813adfd78a68eea9f/pandas/core/strings/object_array.py#L343)

Imported from Jira [BEAM-14066](https://issues.apache.org/jira/browse/BEAM-14066). Original Jira may contain additional context.
Reported by: yeandy.
Subtask of issue #20958

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.