We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af58060 commit b67cae1Copy full SHA for b67cae1
pandas/_libs/join.pyx
@@ -21,6 +21,7 @@ from numpy cimport (
21
cnp.import_array()
22
23
from pandas._libs.algos import (
24
+ ensure_int64,
25
ensure_platform_int,
26
groupsort_indexer,
27
take_1d_int64_int64,
@@ -223,7 +224,7 @@ cdef ndarray[int64_t] _get_result_indexer(
223
224
# cython-only equivalent to
225
# `res = algos.take_nd(sorter, indexer, fill_value=-1)`
226
res = np.empty(len(indexer), dtype=np.int64)
- take_1d_int64_int64(sorter, indexer, res, -1)
227
+ take_1d_int64_int64(ensure_int64(sorter), ensure_platform_int(indexer), res, -1)
228
# FIXME: sorter is intp_t, not int64_t, opposite for indexer;
229
# will this break on 32bit builds?
230
else:
0 commit comments