-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Concatenation warning still appears with sort=False #27702
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 a release note. I think doc/source/whatsnew/v0.25.1.rst is OK.
return res.reindex(self.index, copy=False) | ||
else: | ||
return concat(frames, axis=1, join=how, verify_integrity=True) | ||
return concat( |
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.
I suspect that this branch is under-tested... Could you update your new test to also assert the result of the concat
operation?
pandas/tests/frame/test_join.py
Outdated
@@ -24,6 +24,14 @@ def right(): | |||
return DataFrame({"b": [300, 100, 200]}, index=[3, 1, 2]) | |||
|
|||
|
|||
@pytest.fixture(params=[True, False, None]) |
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.
Perhaps just define this as a pytest.mark.parametrize
on the test itself? Since we only use it once that's a bit clearer.
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.
LGTM other than the lint issue.
Co-Authored-By: Tom Augspurger <[email protected]>
thanks @ncernek |
…s with sort=False
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff