-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
BUG: Fix brittle pivot margins #4358
Conversation
pls move the release notes to 0.13.thanks! (you prob need to rebase too) |
I moved release note to v0.13.0.txt and rebased the branch. |
can you squash into 1-2 commits?
|
sorry..should have mentioned that before |
Fixed |
@@ -29,6 +29,9 @@ Bug Fixes | |||
|
|||
- Fixed bug in ``PeriodIndex.map`` where using ``str`` would return the str | |||
representation of the index (:issue:`4136`) | |||
|
|||
- Fixed some edge cases in pivot_table where margins did not compute if values is the index. |
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.
pls add the issue here (and need in release notes as well)..thanks
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.
@jreback do you mean add the issue number, or an example that would fail without the change?
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.
I meant (:issue:
4358)
....this creates a link in the document back to this actual issue
also...need to rebase on master (what happens is there are conflict on release notes....no biggie)....just rebase and i'll merge you right away |
woops! Turns out my origin master was out of date. Should have used upstream. Hang on, will fix. |
@jreback I made a new branch off master and cherry-picked my commits into it. I picked up a change in a test file |
you need to rebase this something like updates master to current
will bring you up to current |
…_table Adds support for margin computation when all columns are used in rows and cols.
Fixed - sorry. |
@jreback for some reason I made the decision to never use pull (I like to use fetch/merge fast-forward/rebase so I don't get in sticky situations) but now I look again it looks like you can do that with pull too, cooool
not sure I'll change. |
@jreback Travis is green. Any idea when this can get merged in? |
@cpcloud can u take a look? |
@guyrt thanks! merged in |
via 69f5594 |
closes #3334 Brittle pivot margins
Issue was that pivot tables that use all columns of the original DataFrame in rows and cols failed on the margin computation. This is a special case for margins: one should use the index itself as the value.
This is my first PR to Pandas, so apologies for anything out of the ordinary.