Repository navigation
Added from_data and summary methods in weightstats CompareMeans - #2754
Conversation
|
@ValeryTyumen Thank you most of it looks good, but IIRC the class also works for vectorized data with several columns. In that case the current string in summary will not work. |
|
Here's an example for the broadcasted version, it looks like it works as expected (I didn't set a seed, so numbers themselves are not replicable.) |
|
I guess it should look this way |
|
@josef-pkt , could you check it, please? |
There was a problem hiding this comment.
typo, also reverse phrase sounds better IMO: 'Test for equality of means'
|
Thanks, looks good, I only so some style issues. Also, please add it as a smoke test to a unit test. There should be one already where you can just add a call to summary(). (We don't have proper tests for the string output of summary yet) one more: I need to check |
|
I think actually: I think |
|
Thanks for the review, I'll fix that. But I have a couple of questions. |
|
we are following an old pep-8, or the old policy in numpy and scipy. We might update the rules for operators in tight formulas with one or two letter names, but I find the missing spaces very distracting and difficult to read when we have nice informative names. You can change docstring to clarify or improve them, that's very helpful. As background: |
|
Considering the above, I decided to leave the documentation as it is. I also decided to make the whole new test for |
There was a problem hiding this comment.
no empty line after header in docstings
There was a problem hiding this comment.
Copied that from ContrastResults.summary, it has the same style problem.
|
some corrections to the docstring, otherwise this looks ready to merge. |
|
Because nobody is reading my PRs, and I'm often too impatient to read everything again before merging, the docstrings are not always clean. @ValeryTyumen Thank you, I will merge after TravisCI reports back |
|
Great! Can I have your e-mail? I have got some questions. |
|
[email protected] But I prefer general statsmodels related questions on the mailing list, I partially ignore private emails or forget about them when they drop of the front page of my mail. |
|
All green as expected, merging |
…Data ENH: Add from_data and summary methods in weightstats CompareMeans
@josef-pkt, take a look, please.