-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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 for DataFrame with duplicate indices concat #45888
Conversation
DataFrame.join() with duplicate indices should raise now and add test for this.
catch concat's raise, not join
@github-actions pre-commit |
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.
Could you merge in the main branch one more time? For some reason not all the checks ran.
Merged and seems more checks are queued, let's wait and see。 |
add msg for pytest.raises for Code Check
…into df-join-test
Hello @zhengfeiwang! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-02-11 11:41:58 UTC |
remove whitespace in blank line
add detailed description for test, also tend to trigger all checks
…into df-join-test
use concat directly instead of pd.concat for flake8
Thanks @zhengfeiwang |
…#45888) * add test for DataFrame.join() DataFrame.join() with duplicate indices should raise now and add test for this. * Update test_join.py catch concat's raise, not join * Fixes from pre-commit [automated commit] * Update test_join.py add msg for pytest.raises for Code Check * move new test to concat * Update test_concat.py remove whitespace in blank line * Fixes from pre-commit [automated commit] * Update test_concat.py add detailed description for test, also tend to trigger all checks * Update test_concat.py use concat directly instead of pd.concat for flake8
…#45888) * add test for DataFrame.join() DataFrame.join() with duplicate indices should raise now and add test for this. * Update test_join.py catch concat's raise, not join * Fixes from pre-commit [automated commit] * Update test_join.py add msg for pytest.raises for Code Check * move new test to concat * Update test_concat.py remove whitespace in blank line * Fixes from pre-commit [automated commit] * Update test_concat.py add detailed description for test, also tend to trigger all checks * Update test_concat.py use concat directly instead of pd.concat for flake8
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Previously DataFrame with duplicate indices will raise ValueError. With some changes, this will raise InvalidIndexError. This PR add a test for this behavior.