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

Support quartiles #273

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Support quartiles #273

wants to merge 2 commits into from

Conversation

m15a
Copy link

@m15a m15a commented Jun 1, 2021

May close #87.
Depends on BurntSushi/rust-stats/pull/15.

This PL adds option xsv stats --quartiles.
Using quartiles Q1 and Q3, we can roughly estimate outliers. IMHO it's a handy option for preliminary CSV inspection.

@@ -180,6 +199,11 @@ stats_tests!(stats_median_even, "median", &["1", "2", "3", "4"], "2.5");
stats_tests!(stats_median_even_null, "median",
&["", "1", "2", "3", "4"], "2.5");
stats_tests!(stats_median_mix, "median", &["1", "2.5", "3"], "2.5");
stats_tests!(stats_quartiles, "quartiles", &["1", "2", "3"], "1,2,3");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also provide test when the input is &[""]?

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.

stats: Add Q1, Q3, IQR (feature request)
2 participants