Skip to content

Commit bd7471c

Browse files
committed
Added upcast to int64 to prevent 32 bit failures
1 parent a500cfc commit bd7471c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/groupby_helper.pxi.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ def group_fillna_indexer(ndarray[int64_t] out,
987987

988988
N = len(out)
989989

990-
sorted_labels = np.argsort(labels)
990+
sorted_labels = np.argsort(labels).view(dtype=np.int64)
991991
if method == 'bfill':
992992
sorted_labels = sorted_labels[::-1]
993993

0 commit comments

Comments
 (0)