-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: Crosstab support for setting the margins name #15972 #15973
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
Conversation
@@ -420,6 +421,9 @@ def crosstab(index, columns, values=None, rownames=None, colnames=None, | |||
- If margins is `True`, will also normalize margin values. | |||
|
|||
.. versionadded:: 0.18.1 | |||
margins_name : string, default 'All' |
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 add a ..versionadded:: 0.20.0
for this parameter?
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.
Thanks.
One comment on the docstring.
Can you also add a note in the whatsnew file, and a couple tests (one with the default, one with a user-specified argument).
Codecov Report
@@ Coverage Diff @@
## master #15973 +/- ##
==========================================
+ Coverage 91% 91.01% +<.01%
==========================================
Files 145 145
Lines 49581 49581
==========================================
+ Hits 45123 45124 +1
+ Misses 4458 4457 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #15973 +/- ##
==========================================
+ Coverage 91% 91.01% +<.01%
==========================================
Files 145 145
Lines 49581 49581
==========================================
+ Hits 45123 45124 +1
+ Misses 4458 4457 -1
Continue to review full report at Codecov.
|
needs a rebase and tests |
Looks like #16489 fixed this in the meantime. Sorry @slide333333 , but thanks anyways for the PR. |
closes #15972