Skip to content

Commit b67cae1

Browse files
committed
troubleshoot
1 parent af58060 commit b67cae1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/_libs/join.pyx

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ from numpy cimport (
2121
cnp.import_array()
2222

2323
from pandas._libs.algos import (
24+
ensure_int64,
2425
ensure_platform_int,
2526
groupsort_indexer,
2627
take_1d_int64_int64,
@@ -223,7 +224,7 @@ cdef ndarray[int64_t] _get_result_indexer(
223224
# cython-only equivalent to
224225
# `res = algos.take_nd(sorter, indexer, fill_value=-1)`
225226
res = np.empty(len(indexer), dtype=np.int64)
226-
take_1d_int64_int64(sorter, indexer, res, -1)
227+
take_1d_int64_int64(ensure_int64(sorter), ensure_platform_int(indexer), res, -1)
227228
# FIXME: sorter is intp_t, not int64_t, opposite for indexer;
228229
# will this break on 32bit builds?
229230
else:

0 commit comments

Comments
 (0)