[FEA] Support accepting compiled regular expression objects from re.compile() as a pattern #7904
Labels
feature request
New feature or request
good first issue
Good for newcomers
Python
Affects Python cuDF API.
strings
strings issues (C++ and Python)
Milestone
I’d like for cuDF to support accepting compiled regular expression objects from re.compile() as a pattern similarly to how Pandas functions.
Example:
Result:
Pandas does this by utilizing the replace method accepting a compiled regular expression object from re.compile() as a pattern. All flags should be included in the compiled regular expression object.:
Output
0 A
1 B
2 C
3 XX-XX ba
4 XX-XX ca
5
6
7 XX-XX BA
8 XX-XX
9 XX-XX t
dtype: string
The text was updated successfully, but these errors were encountered: