-
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
[REVIEW] Support cupy array in quantile
input
#10429
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #10429 +/- ##
================================================
+ Coverage 85.95% 86.14% +0.18%
================================================
Files 139 139
Lines 22435 22435
================================================
+ Hits 19285 19326 +41
+ Misses 3150 3109 -41
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.
In addition to my one inline comment, I have one last question. Does it makes sense for the return_scalar
logic to exist in the column layer at all, or would it be simpler to remove that parameter and always unpack the scalar in the Series
method? In the interest of getting this merged for the release I'd be fine with postponing that change if you don't think it's quick to assess that now, but I think it's worth considering.
python/cudf/cudf/core/series.py
Outdated
index = None | ||
|
||
return Series(result, index=index, name=self.name) | ||
return Series( |
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 this use _from_data
?
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.
yeah updated to use _from_data
I have given it a thought before but realized it'll end-up duplicating a lot of code for other methods like |
Yeah I noticed the same. Fine with me to defer, good to know you're already thinking about it 👍 |
Co-authored-by: Vyas Ramasubramani <[email protected]>
@gpucibot merge |
Fixes: #8288 This PR fixes
Series.quantile
inputq
to supportcupy
array's.