-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: Check for duplicate names columns and index in crosstab #26717
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
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 tests? Ideally the first part of any PR
Sure! Wanted to know that this was the right approach to solving this issue before writing the tests (sorry, first PR to pandas!) |
Added tests. Basically updated an old test that would break if we used different data. This would break before:
So now I add raises exceptions checking in case that there is:
|
Codecov Report
@@ Coverage Diff @@
## master #26717 +/- ##
=========================================
Coverage ? 41.19%
=========================================
Files ? 179
Lines ? 50774
Branches ? 0
=========================================
Hits ? 20918
Misses ? 29856
Partials ? 0
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26717 +/- ##
==========================================
- Coverage 91.71% 91.7% -0.01%
==========================================
Files 178 178
Lines 50740 50747 +7
==========================================
+ Hits 46538 46540 +2
- Misses 4202 4207 +5
Continue to review full report at Codecov.
|
can you merge master and see if you can get this passing |
@cuchoi pls rebase |
Looks like this has gone stale but ping if you'd like to pick it back up |
Hi! I rebased. Is it not showing up because the issue is closed? Can your reopen it? |
Yes. GitHub struggles with reopening PRs to branches that have been closed. You're probably best off opening a new PR if you're wanting to work on this again! |
Thanks! New PR here: #28474 |
git diff upstream/master -u -- "*.py" | flake8 --diff