-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Bug in quantile() and median() returned wrong result for non monotonic window borders #37166
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
Conversation
…otonic window borders
Yeah would be great to create a function that median and quantile could share for the skiplist inserts and removal |
Should we move the for the |
� Conflicts: � doc/source/whatsnew/v1.2.0.rst
Hmm if it makes the code more DRY then sure. |
this is orthogonal to #36933 ? |
Yes, median and quantile are slightly different from sum/mean/var |
We can use |
Mind merging in master? #36933 was recently pulled in (but shouldn't directly interfere) |
Thanks for the heads up. Had to rename the method, but this was expected. I think this could be merged now. |
Appears that there's another merge conflict. |
� Conflicts: � doc/source/whatsnew/v1.2.0.rst
Thanks @phofl |
…otonic window borders (pandas-dev#37166) * BUG: Bug in quantile() and median() returned wrong result for non monotonic window borders * Adjust whatsnew * Use is monotonic instead * Remove unncecessary code * Remove unncecessary code * Rename function after related pr was merged
…otonic window borders (pandas-dev#37166) * BUG: Bug in quantile() and median() returned wrong result for non monotonic window borders * Adjust whatsnew * Use is monotonic instead * Remove unncecessary code * Remove unncecessary code * Rename function after related pr was merged
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
cc @mroeschke
Values were not added to the window again if starting point was moved back and values were not removed from the window, when ending point was moved back
Should I create functions for the deletion and addition?