-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Median aggregation is not computing the right value #2588
Labels
Comments
My goodness you're right! |
🎉 This issue has been resolved in version 7.4.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug (required)
looking at the aggregation code I notice that the median aggregation function is not computing the correct value:
https://github.com/tannerlinsley/react-table/blob/aa2835766a7a34f70cd6b579628e4f7e820970ab/src/aggregations.js#L52-L68
see also https://en.wikipedia.org/wiki/Median
Provide an example via Codesandbox! (required)
https://codesandbox.io/s/angry-lehmann-kb9vx?file=/src/App.js
Steps To Reproduce (required)
Steps to reproduce the behavior:
Expected behavior (Recommended)
I would expect that these two median values are equal
The text was updated successfully, but these errors were encountered: