Skip to content

BUG: Intersection buggy for non-monotonic non-unique indices (GH8362) #8374

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

Closed
wants to merge 4 commits into from

Conversation

tom-alcorn
Copy link
Contributor

Fixes intersection bug in the case of non-monotonic non-unique indexes.
closes #8362

@jreback
Copy link
Contributor

jreback commented Sep 23, 2014

needs a test (e.g. your example from the issue)

@jreback jreback added Bug Indexing Related to indexing on series/frames, not to indexes themselves labels Sep 23, 2014
@jreback jreback added this to the 0.15.0 milestone Sep 23, 2014
@jreback
Copy link
Contributor

jreback commented Sep 23, 2014

also pls add a release note in v0.15.0.txt

@jreback jreback changed the title Fixing bug #8362 BUG: Intersection buggy for non-monotonic non-unique indices (GH8362) Sep 23, 2014
@@ -1275,6 +1275,7 @@ def intersection(self, other):

try:
indexer = self.get_indexer(other.values)
indexer = indexer[indexer != -1]
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not the right place for this (and it duplicates the next line), I belive the error is in the except itself

@tom-alcorn
Copy link
Contributor Author

Okay I think it's fixed now.

@jreback
Copy link
Contributor

jreback commented Sep 26, 2014

looks good
pls squash and rebase
ping in green

@jreback
Copy link
Contributor

jreback commented Sep 29, 2014

merged via 68fdacd

thanks!

@jreback jreback closed this Sep 29, 2014
@jreback jreback mentioned this pull request Sep 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index.intersection bug?
2 participants