Skip to content
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

Fixed median() to handle unsorted data. Minor text changes for consistency #66

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

keatis
Copy link

@keatis keatis commented Dec 24, 2023

Hi. Turned out that median() did not sort an array, thus giving wrong result on unsorted data.
So, this PR is to fix this - median() will now sort data on self behalf, like quantiles() do.

Tests are included (I also made some text changes to look more consistent over that test file).
Thanks.

@roberto-butti
Copy link
Contributor

thank you for your feedback, and your PR.
I really appreciated!
I will create a new release on 26th Dec.

@roberto-butti roberto-butti merged commit 813a9fa into Hi-Folks:main Dec 26, 2023
8 checks passed
@roberto-butti
Copy link
Contributor

Ehi @keatis ,thank you for your feedback, your effort and your proactivity in creating this PR.
I added some additional tests for the median() function and I merged it into the v1.0.0.
🎉

@keatis
Copy link
Author

keatis commented Dec 26, 2023

Thank you too, @roberto-butti.
Glad to help! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants