Skip to content

Commit 03c3c80

Browse files
committed
troubleshoot 32bit build
1 parent 5577014 commit 03c3c80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/_libs/groupby.pyx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,11 @@ def group_nth(
11411141

11421142
if uses_mask:
11431143
isna_entry = mask[i, j]
1144+
if isna_entry:
1145+
# set out[i, j] to 0 to be deterministic, as
1146+
# it was initialized with np.empty. Also ensures
1147+
# we can downcast out if appropriate.
1148+
out[i, j] = 0
11441149
else:
11451150
isna_entry = checknull(val)
11461151

0 commit comments

Comments
 (0)