Skip to content

BUG: Fix joining overlapping IntervalIndex objects (GH-45661) #45662

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

Conversation

johannes-mueller
Copy link
Contributor

Replacing calls to get_indexer() with get_indexer_for() as
IntervalIndexes can be unique and overlapping.

Similar to #44588

@johannes-mueller johannes-mueller force-pushed the bugfix/join-overlapping-itervalindex branch 2 times, most recently from 80a2647 to 6c1c732 Compare January 28, 2022 07:16
Replacing calls to `get_indexer()` with `get_indexer_for()` as
`IntervalIndex`es can be unique and overlapping.

Similar to pandas-dev#44588
@johannes-mueller johannes-mueller force-pushed the bugfix/join-overlapping-itervalindex branch from 6c1c732 to 8bedde5 Compare January 28, 2022 10:14
@jreback jreback added this to the 1.4.1 milestone Jan 28, 2022
@jreback jreback added Index Related to the Index class or subclasses Interval Interval data type Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Jan 28, 2022
@jreback jreback merged commit f0bd3af into pandas-dev:main Jan 28, 2022
@jreback
Copy link
Contributor

jreback commented Jan 28, 2022

thanks @johannes-mueller very nice

@jreback
Copy link
Contributor

jreback commented Jan 28, 2022

@meeseeksdev backport 1.4.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Jan 28, 2022
@lumberbot-app
Copy link

lumberbot-app bot commented Jan 28, 2022

Something went wrong ... Please have a look at my logs.

phofl pushed a commit that referenced this pull request Jan 28, 2022
@simonjayhawkins
Copy link
Member

@jbrockmendel this has been backported. The PR that is the cause of the regression was #43692 which was some changes specifically targeted at IntervalIndex handling. The changes in this PR affect all Index types? (and the function changed is no longer appropriately named?) Can you give this a quick look and thumbs up before we release 1.4.1 (end of this week)

@jbrockmendel
Copy link
Member

This looks fine to me.

yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Index Related to the Index class or subclasses Interval Interval data type Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: join operation fails on overlapping IntervalIndex levels
5 participants