-
Notifications
You must be signed in to change notification settings - Fork 952
Support re.Pattern object for pat arg in str.replace #9573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rapids-bot
merged 26 commits into
rapidsai:branch-21.12
from
davidwendt:fea-accept-compiled-re
Nov 2, 2021
Merged
Support re.Pattern object for pat arg in str.replace #9573
rapids-bot
merged 26 commits into
rapidsai:branch-21.12
from
davidwendt:fea-accept-compiled-re
Nov 2, 2021
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## branch-21.12 #9573 +/- ##
================================================
- Coverage 10.79% 10.65% -0.14%
================================================
Files 116 117 +1
Lines 18869 19746 +877
================================================
+ Hits 2036 2104 +68
- Misses 16833 17642 +809
Continue to review full report at Codecov.
|
brandon-b-miller
approved these changes
Nov 2, 2021
LGTM |
galipremsagar
approved these changes
Nov 2, 2021
@gpucibot merge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
5 - Ready to Merge
Testing and reviews complete, ready to merge
feature request
New feature or request
non-breaking
Non-breaking change
Python
Affects Python cuDF API.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #7904
Depends on #9439
Adds support to accepting a pattern argument in cudf
str.replace
that is built usingre.compile
. The resultingre.Pattern
has a memberpattern
that is the regex string that can be passed to libcudf. There is alsoflags
member that can be used for libcudf APIs that accept aregex_flags
parameter along with thepattern
string.