-
Notifications
You must be signed in to change notification settings - Fork 920
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
[REVIEW] Remove **kwargs from string/categorical methods #6750
Conversation
Please update the changelog in order to start CI tests. View the gpuCI docs here. |
Codecov Report
@@ Coverage Diff @@
## branch-0.18 #6750 +/- ##
===============================================
+ Coverage 81.59% 82.03% +0.44%
===============================================
Files 96 96
Lines 15927 16262 +335
===============================================
+ Hits 12996 13341 +345
+ Misses 2931 2921 -10
Continue to review full report at Codecov.
|
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.
The changes LGTM ! 🎉 🎉
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.
Some general comments and doubts. Otherwise lgtm!
new_categories = new_categories.astype(common_dtype, copy=False) | ||
old_categories = old_categories.astype(common_dtype, copy=False) | ||
new_categories = new_categories.astype(common_dtype) | ||
old_categories = old_categories.astype(common_dtype) |
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.
Why remove the explicit copy
parameter here?
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.
Because that parameter ends up never getting used. These lines call ColumnBase.astype()
, which in turn calls as_categorical_column
. I didn't find the use of copy
in either of those
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.
Just a note: Series.astype()
will continue to need the copy
parameter: https://pandas.pydata.org/docs/reference/api/pandas.Series.astype.html
@kkraus14 Pushed to 0.18 as this is a QOL thing and more important for typing. |
Looks like there's a few test failures: https://gpuci.gpuopenanalytics.com/blue/organizations/jenkins/rapidsai%2Fgpuci-a100%2Fcudf%2Fprb%2Fcudf-gpu-build/detail/cudf-gpu-build/2213/tests |
Remove keyword "stops" from call to cudf.core.column.string.slice, which no longer accepts arbitrary keywords. cuDF change introduced in rapidsai/cudf#6750. Authors: - William Hicks <[email protected]> Approvers: - John Zedlewski - Micka URL: #3289
This PR removes
**kwargs
from the string/categorical accessors where unnecessary, and exposes keyword arguments likeinplace
to the user directly.If we want to maintain parity with Pandas APIs for Dask/others using cuDF internally, we can consider using the approach described in #6135, which will automatically raise
NotimplementedError
when unsupported kwargs are passed.