-
Notifications
You must be signed in to change notification settings - Fork 916
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
Add istitle
to string UDFs
#11738
Add istitle
to string UDFs
#11738
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## branch-22.10 #11738 +/- ##
===============================================
Coverage ? 87.52%
===============================================
Files ? 133
Lines ? 21795
Branches ? 0
===============================================
Hits ? 19076
Misses ? 2719
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Co-authored-by: Bradley Dice <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestions
__device__ inline bool is_title(cudf::strings::detail::character_flags_table_type* flags_table, | ||
string_view d_str) | ||
{ | ||
bool valid = false; // requires one or more cased characters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test case that covers the branch where we start with valid and never enter the if
statement below? I assume a numeric like "123"
or a symbolic string like "^#("
would do the trick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure whether it's best to test in the string UDF tests, the cudf tests, or both; up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I merged my one minor suggestion after I saw that you added tests and am approving. Feel free to merge when you think it's ready.
@gpucibot merge |
This PR adds support for the use of the
str.istitle()
method within udfs forapply
.