Skip to content

Commit 40f4b03

Browse files
committed
BUG: use int64_t in factorize
1 parent 681f9f5 commit 40f4b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/src/sandbox.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ cdef class Int64HashTable:
397397

398398
return locs
399399

400-
def factorize(self, ndarray[object] values):
400+
def factorize(self, ndarray[int64_t] values):
401401
cdef:
402402
Py_ssize_t i, n = len(values)
403403
ndarray[int32_t] labels = np.empty(n, dtype=np.int32)

0 commit comments

Comments
 (0)