-
-
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
TST: Add test of DataFrame.xs() with duplicates (#13719) #22294
Conversation
Hello @nmusolino! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on August 16, 2018 at 01:14 Hours UTC |
pandas/tests/test_multilevel.py
Outdated
@@ -486,6 +486,13 @@ def test_xs_partial(self): | |||
expected = df.loc['foo', 'one'] | |||
tm.assert_frame_equal(result, expected) | |||
|
|||
# DataFrame with a MultiIndex containing duplicates (#13719) |
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 as a separate test.
Codecov Report
@@ Coverage Diff @@
## master #22294 +/- ##
==========================================
- Coverage 92.08% 92.05% -0.04%
==========================================
Files 169 169
Lines 50694 50709 +15
==========================================
- Hits 46682 46678 -4
- Misses 4012 4031 +19
Continue to review full report at Codecov.
|
@jreback This is ready for another look. |
thanks @nmusolino |
Added tests of DataFrame.xs() method for multilevel index containing duplicates. The underlying bug reported in #13719 was fixed previously, but was not covered by specific unit tests.
level
kwarg is called. #13719git diff upstream/master -u -- "*.py" | flake8 --diff