-
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
Add method argument to DataFrame.quantile #11957
Conversation
Co-authored-by: Richard (Rick) Zamora <[email protected]>
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 applied a suggested typo fix, otherwise LGTM!
Codecov ReportBase: 87.40% // Head: 86.89% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## branch-22.12 #11957 +/- ##
================================================
- Coverage 87.40% 86.89% -0.52%
================================================
Files 133 133
Lines 21833 21980 +147
================================================
+ Hits 19084 19100 +16
- Misses 2749 2880 +131
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View 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.
Very minor quibble: we could go through a public API.
if q_is_number: | ||
result = result.transpose() | ||
return Series( | ||
data=result._columns[0], index=result.index, name=q |
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 produces a slight inconsistency with the other cases in that here the index is a cudf.core.index.StringIndex
whereas otherwise it is a pandas.core.indexes.base.Index
.
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.
Does this change resolve the inconsistency? Side note that this isn't new code, but I'm certainly happy to fix things while we are making changes anyway.
Thanks for the review @wence- ! Can you clarify what you would like to see here a bit? |
@gpucibot merge |
Description
Adds a
method
argument toDataframe.quantile
to match pandas behavior. Also deprecatesDataFrame.quantiles
(with aFutureWarning
informing the user of themethod
argument).Closes #11572
Checklist