Skip to content

Commit ca68178

Browse files
Update lib.pyx maybe_indices_to_slice to use uint64_t
Update maybe_indices_to_slice to use unit64_t allowing manipulation of massive data frames (See pandas-dev#59531)
1 parent a7a1410 commit ca68178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/lib.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,10 @@ def has_only_ints_or_nan(const floating[:] arr) -> bool:
494494
return True
495495

496496

497-
def maybe_indices_to_slice(ndarray[intp_t, ndim=1] indices, int max_len):
497+
def maybe_indices_to_slice(ndarray[intp_t, ndim=1] indices, uint64_t max_len):
498498
cdef:
499499
Py_ssize_t i, n = len(indices)
500-
intp_t k, vstart, vlast, v
500+
uint64_t k, vstart, vlast, v
501501

502502
if n == 0:
503503
return slice(0, 0)

0 commit comments

Comments
 (0)