Skip to content

BUG: allow dup indexing with Float64Index #7149

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
merged 1 commit into from
Jun 1, 2014
Merged

BUG: allow dup indexing with Float64Index #7149

merged 1 commit into from
Jun 1, 2014

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented May 17, 2014

closes #7143

@@ -401,6 +401,35 @@ cdef class Float64Engine(IndexEngine):
cdef _get_index_values(self):
return algos.ensure_float64(self.vgetter())

cdef _maybe_get_bool_indexer(self, object val):
Copy link
Contributor

Choose a reason for hiding this comment

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

so this is only hit when the Float64Index is non-monotonic and non-unique?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep

Copy link
Member Author

Choose a reason for hiding this comment

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

and only if you try to slice it.... it works for single element access

Copy link
Member Author

Choose a reason for hiding this comment

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

actually nevermind ... it only raises if you try to pass a slice in

@cpcloud cpcloud changed the title BUG: allow dup slicing with Float64Index BUG: allow dup indexing with Float64Index May 17, 2014
@cpcloud cpcloud added this to the 0.14.1 milestone May 17, 2014
@cpcloud cpcloud self-assigned this May 17, 2014
@cpcloud
Copy link
Member Author

cpcloud commented May 20, 2014

@jreback should this be in 0.14.0? or not serious enough?

@jreback
Copy link
Contributor

jreback commented May 20, 2014

let's hold off on this

@jreback
Copy link
Contributor

jreback commented May 30, 2014

looks good....add a whatsnew (0.14.1) note and looks good

cpcloud added a commit that referenced this pull request Jun 1, 2014
BUG: allow dup indexing with Float64Index
@cpcloud cpcloud merged commit b0c8110 into pandas-dev:master Jun 1, 2014
@cpcloud cpcloud deleted the float64index-dup-fix-7143 branch June 1, 2014 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate index with FloatIndex giving 'ValueError: Length mismatch'
2 participants