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
StatisticsCleanup: stats.kruskal
review
#5126
Conversation
Added empty input handling and tidied up the code. Documentation was improved and examples added. closes scipygh-639
Code changes:
Documentation changes:
ping @rgommers |
a32dc8e
to
4b432d3
Compare
x = [1, 1, 1] | ||
y = [2, 2, 2] | ||
z = [] | ||
h, p = stats.kruskal(x, y, z) |
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.
Unused results.
@@ -4638,33 +4644,55 @@ def kruskal(*args): | |||
|
|||
References | |||
---------- | |||
.. [1] http://en.wikipedia.org/wiki/Kruskal-Wallis_one-way_analysis_of_variance | |||
.. [1] Kruskal, William H. & Wallis, W. Allen, "Use of Ranks in |
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.
Can you write the names as W.H. Kruskal and W.W. Allen
?
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.
And Volume
as Vol.
? Both minor, but good to keep things consistent with the numpy docstring guidelines.
Looks good to me, can be merged once the minor comments are addressed. |
Comments addressed. Nothing major so TravisCI should pass again. |
MAINT: StatisticsCleanup: `stats.kruskal` review
Green & merged. Thanks @aeklant |
closes gh-639