Skip to content

BUG: fixed a bug in multi-level indexing with a Timestamp partial indexer (GH4294) #5088

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
Oct 2, 2013

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Oct 2, 2013

closes #4294

@@ -408,7 +408,7 @@ cdef class Float64Engine(IndexEngine):
limit=limit)


cdef Py_ssize_t _bin_search(ndarray values, object val):
cdef Py_ssize_t _bin_search(ndarray values, object val) except -1:
Copy link
Member

Choose a reason for hiding this comment

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

I'm assuming that only positive ints and 0 are returned here, is that correct? or more specifically that -1 can't be returned as an index ... if you return -1 explicitly you'll get a runtimerror saying you didn't set the exception handler or soemthing like that .. i don't remember the specific error

Copy link
Member

Choose a reason for hiding this comment

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

yep only pos

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the error was not bubbling up..

Copy link
Member

Choose a reason for hiding this comment

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

yep ... that's bc of not declaring except -1 ... i answered my own question

jreback added a commit that referenced this pull request Oct 2, 2013
BUG: fixed a bug in multi-level indexing with a Timestamp partial indexer (GH4294)
@jreback jreback merged commit 8dbbf56 into pandas-dev:master Oct 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ER: Bug accessing a series MultiIndex with a Timestamp
2 participants