-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
ERR: disallow non-hashables in Index/MultiIndex construction & rename #20548
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
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
9047d60
Check non-hashability on series construction and renaming
arminv df7650d
Removed changes from pandas/core/series.py
arminv dd64219
Check non-hashability on Index construction and renaming
arminv 89e92ab
modified test_getitem_list example to disallow non-hashable names
arminv cd3e53a
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv cd070e3
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 351691f
Changed ErrorType message for hashability requirement
arminv 3a7b0b2
8000
Fixed how rename calls set_names to allow for MultiIndex hashable typ…
arminv 70933d5
Moved type checking from set_names back to rename
arminv 56fd617
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv d4ed636
Moved hashable checking to set_names. Changed exception messages.
arminv b554bb3
Modified test_duplicate_level_names to pass with new (hashable names)…
arminv 6efd6cc
Added test_constructor_nonhashable_names for checking hashability on …
arminv 4fb3a6b
Fixed a typo
arminv 786f43f
Minor refactoring of test_constructor_nonhashable_names
arminv 01b712e
Added test_constructor_nonhashable_name for checking hashability on name
arminv 6f13cd0
Added note in Other API Changes on hashability of names
arminv 26433c3
Improved wording of the note
arminv 91ef466
Addressed PEP 8 issues
arminv 85e35ea
Modified exception message of Index
arminv 5c2e240
Changed exception message format
arminv 4ca2a52
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 840cd88
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 18bcf2a
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv d98014f
Refactoring
arminv b8a1d7e
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv edfbd1d
Added internal comment
arminv 2322346
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv fa52655
Refactoring
arminv c0f6936
Moved check from set_names to _set_names
arminv a9c14e6
test with fixture
jreback 30da596
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 667d495
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv c4c1011
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv bd75433
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 74a9b54
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv b1cb7fd
Refactoring. Internal docstring. Minor typos
arminv 863f7d3
PEP 8
arminv 0723009
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 7092d49
Improved docstring wording
arminv 1d8f67a
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 12488ff
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 4a500ba
Shorten docstring
arminv 9ec64b0
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 47903ae
Merge remote-tracking branch 'upstream/master' into non_hashable_err
arminv 04f2eed
Added examples
arminv 1a68188
remove examples from _set_names
jreback 97a2b06
consolidate logic a bit
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
Prev
Previous commit
consolidate logic a bit
- Loading branch information
commit 97a2b06c305f70ffd0c1e4fcbce4169d1f54ccf9
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
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.
looks good here. can you update the doc-string with the comment below