-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
PERF: Allow ensure_index_from_sequence to return RangeIndex #57786
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
WillAyd
merged 26 commits into
pandas-dev:main
from
mroeschke:perf/ri/ensure_index_from_sequence
Mar 19, 2024
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
aa5589c
PERF: RangeIndex.take with 1 value return RangeIndex
mroeschke 47af1ce
add issue number
mroeschke e7e0fcb
Move to _shallow_copy, support empty join as well
mroeschke 67f1998
Fix self.name
mroeschke 676a1f4
Merge remote-tracking branch 'upstream/main' into perf/ri/take_1
mroeschke e37500e
Merge remote-tracking branch 'upstream/main' into perf/ri/take_1
mroeschke 2cc41fc
FIx error message
mroeschke 7e1dac7
Merge remote-tracking branch 'upstream/main' into perf/ri/take_1
mroeschke c7da6ac
Fix hdf test
mroeschke 90ff39c
PERF: Allow ensure_index_from_sequence to return RangeIndex
mroeschke 66d3456
Ignore Index and Series objects
mroeschke 5c01d6a
Merge remote-tracking branch 'upstream/main' into perf/ri/ensure_inde…
mroeschke 7e6fcea
Fix doctest
mroeschke 1ab4c1e
Merge remote-tracking branch 'upstream/main' into perf/ri/ensure_inde…
mroeschke b5144f4
More specific check
mroeschke 64918cf
Merge remote-tracking branch 'upstream/main' into perf/ri/ensure_inde…
mroeschke 08da810
Only allow int64, fix indexing
mroeschke 8957995
Merge remote-tracking branch 'upstream/main' into perf/ri/ensure_inde…
mroeschke b7e5dc1
use Index
mroeschke f0592c5
Use np_values
mroeschke 33fa1f4
Add back int32
mroeschke 4015ac6
Merge remote-tracking branch 'upstream/main' into perf/ri/ensure_inde…
mroeschke 5fb9516
Ignore Series and Index objects
mroeschke ff186c1
Merge remote-tracking branch 'upstream/main' into perf/ri/ensure_inde…
mroeschke 4e7cf98
Wrong condition
mroeschke b5b9a89
Merge remote-tracking branch 'upstream/main' into perf/ri/ensure_inde…
mroeschke 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
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.
Why are only the first two elements important here?
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.
We're taking an example diff here (just between the first 2 elements) and later seeing if the rest of the diffs between the rest of the elements match