8000 [FEA] Support replacing word boundaries in regexp replace in way that is compatible with Python/Java · Issue #9950 · rapidsai/cudf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[FEA] Support replacing word boundaries in regexp replace in way that is compatible with Python/Java #9950
Closed
@andygrove

Description

@andygrove

Is your feature request related to a problem? Please describe.
When replacing the pattern \\b (word boundary) with X for the string a\nb, Python and Java produce XaX\nXbX and cuDF produces XXXa\nb.

>>> re.sub('\\b', 'X', 'a\nb')
'XaX\nXbX'
>>> cudf.Series(['a\nb']).str.replace('\\b', 'X', regex=True)
0    XXXa\nb

Describe the solution you'd like
I would like the ability to match Python/Java behavior in this case.

Describe alternatives you've considered
None

Additional context
None

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglibcudfAffects libcudf (C++/CUDA) code.stringsstrings issues (C++ and Python)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0