-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: get_indexer returned dtype #36431
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls merge master as well
@@ -347,7 +347,7 @@ cdef class {{name}}HashTable(HashTable): | |||
int ret = 0 | |||
{{dtype}}_t val | |||
khiter_t k | |||
int64_t[:] locs = np.empty(n, dtype=np.int64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these all the int64's in this file? (that are indexers)
@@ -266,7 +266,7 @@ cdef class IndexEngine: | |||
""" | |||
cdef: | |||
ndarray values, x | |||
ndarray[int64_t] result, missing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are all of these indexer changed int his file?
LGTM |
thanks @alexhlim |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Changed the return dtype of IndexEngine’s
get_indexer()
andget_indexer_non_unique()
. I decided to not include tests because dtypes are already implicitly tested in the following:Also, I ran the asv benchmarks: