Skip to content

Commit 468af69

Browse files
committed
Changed .view to .astype to avoid 32 bit segfaults
1 parent df3830f commit 468af69

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
@@ -1069,7 +1069,7 @@ def group_fillna_indexer(ndarray[int64_t] out,
10691069

10701070
N = len(out)
10711071

1072-
sorted_labels = np.argsort(labels).view(dtype=np.int64)
1072+
sorted_labels = np.argsort(labels).astype(np.int64, copy=False)
10731073
if method == 'bfill':
10741074
sorted_labels = sorted_labels[::-1]
10751075

0 commit comments

Comments
 (0)