-
Notifications
You must be signed in to change notification settings - Fork 915
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
Migrate string capitalize
APIs to pylibcudf
#15503
Migrate string capitalize
APIs to pylibcudf
#15503
Conversation
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.
Couple of small things, but this is nearly good to go.
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.
Approved trivial CMake changes
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.
Couple of small comments, but nothing that really requires a change. Everything looks good!
@@ -15,6 +15,7 @@ | |||
set(cython_sources aggregation.pyx binaryop.pyx copying.pyx replace.pyx reduce.pxd | |||
stream_compaction.pyx types.pyx unary.pyx | |||
) | |||
add_subdirectory(strings) |
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.
For consistency with other files I'd suggest putting this after the rapids_cython_create_modules
call, but it doesn't really matter.
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'm fine leaving this as-is, but if the entire module is just the enum I sort of wonder if we shouldn't just lift it up directly into the __init__.py/pxd
files.
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.
For me the main justification for leaving it is that if I'd usually #include
a libcudf header to make use of some API or object, I think I should expect to import
or cimport
it from the corresponding pylibcudf "namespace".
/merge |
This PR creates the
pylibcudf.strings.capitalize
namespace and migrates the cuDF cython to use it. Depends on #15489Part of #15162