-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
rolling.quantile returns an interpolated result #16216
Conversation
Now the rolling window quantile returns the interpolated value like np.percentile and Series.quantile.
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.
pls add a release note (0.20.1), call a bug fix is fine.
pls add the example from the issue as an additional tests; add a comment to reference the issue
pandas/tests/test_window.py
Outdated
qhig = (int(idx) + 1) / (values.shape[0] - 1) | ||
vlow = values[int(idx)] | ||
vhig = values[int(idx + 1)] | ||
retval = vlow + (vhig - vlow)*(per - qlow)/(qhig - qlow) |
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 will cause some lint issues
add the examples as tests from #9413 |
Codecov Report
@@ Coverage Diff @@
## master #16216 +/- ##
=======================================
Coverage 90.89% 90.89%
=======================================
Files 162 162
Lines 50884 50884
=======================================
Hits 46250 46250
Misses 4634 4634
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16216 +/- ##
==========================================
- Coverage 90.25% 90.23% -0.02%
==========================================
Files 164 162 -2
Lines 50894 50882 -12
==========================================
- Hits 45934 45914 -20
- Misses 4960 4968 +8
Continue to review full report at Codecov.
|
@jreback I think that I have implemented all the requested improvements. EDIT: Some tests failed in circleci, but ran OK in my machine. |
@jreback. Tests passed and changes implemented. |
pls don't open new pr's for the same issue, you simply push to the same PR. ok on this one. |
Sorry. Just trying to make things right. |
git diff upstream/master --name-only -- '*.py' | flake8 --diff