-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: fix error for reset_index() with index.name in MultiIndex columns #16126
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
pandas/tests/test_multilevel.py
Outdated
expected = df.copy() | ||
df.index.name = 'A' | ||
result = df[['B']].reset_index() | ||
print(result) |
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.
no prints
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.
oops.. sorry
9cc4fa3
to
c6dec63
Compare
Codecov Report
@@ Coverage Diff @@
## master #16126 +/- ##
==========================================
- Coverage 90.84% 90.83% -0.01%
==========================================
Files 159 159
Lines 50774 50774
==========================================
- Hits 46124 46123 -1
- Misses 4650 4651 +1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16126 +/- ##
==========================================
- Coverage 90.84% 90.83% -0.01%
==========================================
Files 159 159
Lines 50774 50774
==========================================
- Hits 46124 46123 -1
- Misses 4650 4651 +1
Continue to review full report at Codecov.
|
thanks! |
git diff upstream/master --name-only -- '*.py' | flake8 --diff