-
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
Remove deprecated Series.applymap. #11031
Remove deprecated Series.applymap. #11031
Conversation
@@ -22,14 +22,13 @@ def _generic_function(a): | |||
(lambda x: x in [1, 2, 3, 4], lambda ser: np.isin(ser, [1, 2, 3, 4])), | |||
], | |||
) | |||
def test_applymap_python_lambda(dtype, udf, testfunc): | |||
def test_apply_python_lambda(dtype, udf, testfunc): |
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.
This test file is really short and might be a candidate for removal / integration into another test file.
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 would be in support of removing this. I'm a little surprised the test for np.isin
works since this is a numpy API I wouldn't expect to be supported by the cuda target. Will sniff around here too.
Is there a case to just remove the |
I think that’s a great question but I am not sure of the answer. I have not looked closely at the tests or test coverage yet but that’s part of why I tagged you for review. If you have ideas for specific pieces to remove, please weigh in! |
Made a few comments and noticed a few touchups that need to be put in around
Let's make sure those are addressed and then rotate back to this. |
This PR has been labeled |
Tasks for later, discussed with @brandon-b-miller:
|
rerun tests |
Looks like there's a test failure because we're missing an implementation of the |
While working through #11031 it was discovered that we were missing the ability to "cast" between python "classes" (`int`, `float`, and `bool`) within UDFs. This PR introduces the equivalent syntax into masked UDFs. These operations shall be interpreted as mapping to `int64`, `float64` and `bool` types, following numpy and numba's existing handling for scalar types. Authors: - https://github.com/brandon-b-miller Approvers: - Bradley Dice (https://github.com/bdice) - Matthew Roeschke (https://github.com/mroeschke) URL: #11578
Codecov Report
@@ Coverage Diff @@
## branch-22.10 #11031 +/- ##
===============================================
Coverage ? 86.41%
===============================================
Files ? 145
Lines ? 22972
Branches ? 0
===============================================
Hits ? 19852
Misses ? 3120
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@brandon-b-miller @galipremsagar @isVoid This should be ready for review, CI is passing now. |
@gpucibot merge |
This PR removes the deprecated
Series.applymap
function. This function does not exist in pandas. Users should switch to usingSeries.apply
. (Note thatDataFrame.applymap
does exist in both pandas and cudf.) Deprecated in #10497.