Skip to content
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

REF: share join methods for DTI/TDI #30595

Merged
merged 5 commits into from
Jan 1, 2020

Conversation

jbrockmendel
Copy link
Member

The only actual changed behavior is in the new _is_convertible_to_index_for_join method where it first checks:

if isinstance(other, cls):
    return False

In master, TimedeltaIndex uses _is_convertible_to_index which returns True here. The DTI method behavior is unchanged.

@jbrockmendel
Copy link
Member Author

In a follow-up, there will be more set methods we can share.

@jreback jreback added Refactor Internal refactoring of code Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Jan 1, 2020
@jreback jreback added this to the 1.0 milestone Jan 1, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. ping on green.

@jbrockmendel
Copy link
Member Author

ping

@jreback jreback merged commit 8e892d4 into pandas-dev:master Jan 1, 2020
@jbrockmendel jbrockmendel deleted the ref-share-join2 branch January 1, 2020 04:37
hweecat pushed a commit to hweecat/pandas that referenced this pull request Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants