-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Multiindex recurse error fix #29260
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
Merged
jreback
merged 16 commits into
pandas-dev:master
from
endremborza:multiindex-recurse-error-fix
Jan 1, 2020
Merged
Multiindex recurse error fix #29260
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
79a08d7
Merge pull request #1 from pandas-dev/master
endremborza 9dda1ec
Merge remote-tracking branch 'upstream/master'
endremborza 03529a9
Merge remote-tracking branch 'upstream/master'
endremborza d32222a
add test for multi join recursion error
endremborza 02e2645
fix multi join recursion error
endremborza 8bafd6b
black formatting
endremborza 99aa8bd
add assertion to midx join test
endremborza a00e80f
style corrections
endremborza 505d814
add assertion to midx join test
endremborza 5f09a01
whatsnew entry for join
endremborza f22a665
exapnd multiindex test
endremborza 66fb17d
whatsnew bugfix multiindex reshaping expand
endremborza 12af280
Merge remote-tracking branch 'upstream/master'
endremborza b33cef8
Merge branch 'master' into multiindex-recurse-error-fix
endremborza 18acc85
Merge branch 'master' into multiindex-recurse-error-fix
jreback 733b1c6
clean tests
jreback File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 use tm.assert_index_equal here instead of breaking up into individual arrays?
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 can only do this for midx1 as Index.equals is not sensitive for the order of names, but tm.assert_index_equal is.
Anyway, I expanded both the test and the docs.
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.
Hmm not sure I totally follow; can you not set the proper expectation inclusive of the order?
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.
mdx does not equal join_idx, so midx2 just remains the same, basically, which is fine for Index.equals, but there is nothing to compare it with in this example using tm.assert_index_equal. That would require a more complicated example. I didn't add any, as the order of the indices is not agreed upon, I just corrected a bug one way.
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.
anyway, since this I expanded the test a little