-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
ENH: NumericIndex for any numpy int/uint/float dtype #41153
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
55 commits
Select commit
Hold shift + click to select a range
9739f85
ENH: Add NumIndex for indexic of any numeric type
topper-123 88a7858
fix various issues reported by the CI
topper-123 7ccb1b7
fix test failure
topper-123 b45500d
Make (Int|UInt|Float)64Index inherit from NumIndex
topper-123 5ef35f5
fix errors
topper-123 d8f6c22
Add more numeric tests for NumIndex
topper-123 1c65a0b
fixups
topper-123 f3e13aa
fix exact='equiv'
topper-123 4e17485
add more comprehensive tests
topper-123 c1e801d
fixes
topper-123 aa0cea7
addresses comments (move _format_native_types, assert_index_equal etc.)
topper-123 1f5f922
remove from public namespace
topper-123 132ce44
rename to NumericIndex
topper-123 058cd2e
fixes
topper-123 1c7f23f
fix test
topper-123 07a097c
ENH: Add NumIndex for indexic of any numeric type
topper-123 ff6cfb4
fix test failure
topper-123 fe7b97c
Add more numeric tests for NumIndex
topper-123 86f3960
fixups
topper-123 2424c0d
fix exact='equiv'
topper-123 a515bba
add more comprehensive tests
topper-123 341fc2f
remove from public namespace
topper-123 c2d8884
fix test
topper-123 5a56b1a
add back numeric tests
topper-123 a497d57
fix comments
topper-123 6557689
fix comments part II
topper-123 5bc4c2c
_is_num_index -> _is_numeric_index + Index.union
topper-123 84bf540
makeNumIndex -> makeNumericIndex and refactor makeIntIndex etc.
topper-123 69953b4
fix errors
topper-123 b4be77d
rebase after #41472
topper-123 bb42e2d
small clean-up
topper-123 bafa9b3
small clean-up II
topper-123 35b0e71
small clean-up III
topper-123 ed4730b
small clean-up IV
topper-123 6a32788
small clean-up V
topper-123 47e208c
fix bug
topper-123 d6a03a0
fix failures
topper-123 ec003ed
cleanups
topper-123 7ddee71
chabge _is_numeric_index to be an attribute
topper-123 2bb282f
minor clean-ups
topper-123 c1633fb
fix not-allowed parameter
topper-123 9c7d57b
fix _should_fallback_to_positional
topper-123 f6dccc1
clean-ups after rebasing
topper-123 3630fc7
more clean-ups
topper-123 bfe6895
add cleanups
topper-123 8532ddb
fix TestApi failure
topper-123 186de8e
more precise tests
topper-123 ead8f57
update tests
topper-123 2a850ea
update asserters doc string
topper-123 d04da70
update tests/common.py
topper-123 4b8385c
cleanups
topper-123 1f52f8b
simplify _ensure_dtype
topper-123 951c5f7
make attribute name clearer
topper-123 7c7c0dd
address comments
topper-123 bb72c68
add TODO
topper-123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ | |
RangeIndex, | ||
Float64Index, | ||
MultiIndex, | ||
NumericIndex, | ||
IntervalIndex, | ||
TimedeltaIndex, | ||
DatetimeIndex, | ||
|
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
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.
this should just be a property on the index itself no? why is this needed at all
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.
Yes, I've changed it to an attribute on the index classes.