-
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
Deprecate method parameters to DataFrame.join, DataFrame.merge. #9291
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-21.12 #9291 +/- ##
===============================================
Coverage ? 10.77%
===============================================
Files ? 116
Lines ? 19394
Branches ? 0
===============================================
Hits ? 2090
Misses ? 17304
Partials ? 0 Continue to review full report at Codecov.
|
I just noticed the cudf/python/cudf/cudf/tests/test_joining.py Lines 105 to 106 in 6484e2a
The tests should be updated to skip the |
rerun tests |
@charlesbluca @brandon-b-miller This is now ready for review. |
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.
There doesn't seem to be a kwarg for this in pandas. Looking back through git it looks like this is a legacy parameter leftover from pygdf days. I do not see anywhere in the libcudf join header that consumes this either.
Should we deprecate or deprecate and remove this instead?
@shwina suggested "I think we want to expose it, but perhaps with a warning that it does literally nothing." @shwina do you have additional thoughts on this? I vote for deprecation here. |
At some point we discussed what a python interface to Generally the pattern is that we write the function signature such that it either matches the pandas API exactly or matches exactly plus a superset of kwargs. Any parameters we don't support we detect and throw. this avoids users converting their code from pandas and possibly picking up quiet bugs from args/kwargs not being in the right spots. |
This was my mistake @bdice. When we discussed this, my assumption was that Pandas exposed a |
@shwina No problem! I'll make that addition. 👍 |
I created #9353 to track removal. |
@gpucibot merge |
This PR improves deprecation warnings. I fixed some typos to make it easier to grep for deprecations, and added the warning type `DeprecationWarning` where appropriate. (Found these issues while looking for examples of deprecations for #9291.) Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) - Ashwin Srinath (https://github.com/shwina) - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #9347
This PR removes the deprecated `method` parameter from `DataFrame.merge` and `DataFrame.join`. This resolves #9353 and follows up on #9291. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #9944
The
method
parameter toDataFrame.join
andDataFrame.merge
isn't used internally after changes in #7454. This PR updates the docstrings and adds deprecation notices viaFutureWarning
as discussed in #9347.The parameter is now deprecated in the public API. I removed all internal uses of the
method
parameter.