-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: pivot_table over Categorical Columns #15511
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
Codecov Report
@@ Coverage Diff @@
## master #15511 +/- ##
==========================================
+ Coverage 90.36% 91.08% +0.71%
==========================================
Files 136 136
Lines 49553 49101 -452
==========================================
- Hits 44780 44724 -56
+ Misses 4773 4377 -396
Continue to review full report at Codecov.
|
pandas/tools/pivot.py
Outdated
@@ -175,6 +175,10 @@ def pivot_table(data, values=None, index=None, columns=None, aggfunc='mean', | |||
if len(index) == 0 and len(columns) > 0: | |||
table = table.T | |||
|
|||
# GH 15193 |
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 1-liner explaining what is going on here
lgtm. ping on green (a couple of typos, but will fix on merge). |
thanks! |
closes pandas-dev#15193 Author: Nicholas Ver Halen <[email protected]> Closes pandas-dev#15511 from verhalenn/issue15193 and squashes the following commits: bf0fdeb [Nicholas Ver Halen] Added description to code change. adf8616 [Nicholas Ver Halen] Added whatsnew for issue 15193 a643267 [Nicholas Ver Halen] Added test for issue 15193 d605251 [Nicholas Ver Halen] Made sure pivot_table propped na columns
git diff upstream/master | flake8 --diff