Skip to content

Commit bf8c144

Browse files
committed
Changed .view to .astype to avoid 32 bit segfaults
1 parent 0e754aa commit bf8c144

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).view(dtype=np.int64)
990+
sorted_labels = np.argsort(labels).astype(np.int64, copy=False)
991991
if method == 'bfill':
992992
sorted_labels = sorted_labels[::-1]
993993

0 commit comments

Comments
 (0)