-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
COMPAT: Return NotImplemented for subclassing #31136
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
TomAugspurger
merged 10 commits into
pandas-dev:master
from
TomAugspurger:31109-object-ops
Jan 28, 2020
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1a03084
COMPAT: Return NotImplemented for subclassing
TomAugspurger db950c9
fixup
TomAugspurger 900dacb
fixup
TomAugspurger 7d057be
fixup
TomAugspurger 35549e6
Merge remote-tracking branch 'upstream/master' into 31109-object-ops
TomAugspurger 8b9f5af
Merge remote-tracking branch 'upstream/master' into 31109-object-ops
TomAugspurger ec51207
added xfails
TomAugspurger b80f8fa
Merge remote-tracking branch 'upstream/master' into 31109-object-ops
TomAugspurger d257f65
Merge remote-tracking branch 'upstream/master' into 31109-object-ops
TomAugspurger a3b5c7a
object
TomAugspurger 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
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 only object dtype? You could have Index subclasses with a different dtype? (or is that not realistic?)
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.
That's my suspicion. It's at least true for the xarray case.
@dcherian does xarray have any Index subclasses that have a non
object
dtype?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 is a question for @shoyer
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.
Xarray only has one Index subclass, which is of object dtype. It's definitely a little fragile, though, so we would like to eventually get rid of it.
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.
IIRC CFTime is for the "UT" timezone, which is always within 1 second of UTC, right? Can this be represented as a tzinfo object?