We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
In [1]: from cudf import * In [2]: Series([1, 3, 4]).quantile(0.5, interpolation="lower") Out[2]: 3.0 In [3]: import pandas In [4]: pandas.Series([1, 3, 4]).quantile(0.5, interpolation="lower") Out[4]: 3 In [5]: Series([1, 3, 4]).median() Out[5]: 3.0
Ideally, it would be great for odd number of values that quantile(0.5) and median respect the original type and not always cast to float.
quantile(0.5)
median
Describe the solution you'd like When possible, downcast to the original type for quantile and median
quantile
Describe alternatives you've considered N/A
Additional context Add any other context, code examples, or references to existing implementations about the feature request here.
The text was updated successfully, but these errors were encountered:
Preserve types of scalar being returned when possible in quantile (#…
ad9fa50
…14014) closes #14002 This PR changes the behavior of the `quantile` API by preserving the return type of scalar `interpolation` is either one of `"lower", "higher", "nearest"`. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Bradley Dice (https://github.com/bdice) - Vyas Ramasubramani (https://github.com/vyasr) URL: #14014
galipremsagar
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
Ideally, it would be great for odd number of values that
quantile(0.5)
andmedian
respect the original type and not always cast to float.Describe the solution you'd like
When possible, downcast to the original type for
quantile
andmedian
Describe alternatives you've considered
N/A
Additional context
Add any other context, code examples, or references to existing implementations about the feature request here.
The text was updated successfully, but these errors were encountered: