-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: pivot_table dropna=False drops columns/index names #12650
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
c = np.array(['dull', 'dull', 'dull', 'dull', | ||
'dull', 'shiny', 'shiny'], dtype=object) | ||
|
||
res = crosstab(a, [b, c], rownames=['a'], |
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.
pd.crosstab (and same below)
@jreback Thanks for the comments. But I don't think this is the correct way to cherry pick commits..?? I'll learn some github basics and fix this thing within next two days. |
@OXPHOS it looks ok. you prob want to squash commits down though to make it easier to work with (e.g. squash yours to a single one, his the same). |
Cool. Got it. Thanks! On Thu, Mar 17, 2016 at 12:19 PM, Jeff Reback [email protected]
|
acc85fc
to
3acf970
Compare
@jreback ready to merge : ) |
@@ -965,6 +965,62 @@ def test_margin_ignore_dropna_bug(self): | |||
expected.columns = Index([3, 4, 'All'], name='b') | |||
tm.assert_frame_equal(actual, expected) | |||
|
|||
# GH 12642 |
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.
add this to the whatsnew (as a separate bug fix line)
thanks @OXPHOS |
git diff upstream/master | flake8 --diff
Bug fixed from pull request #12327.