Skip to content

Commit 365733e

Browse files
committed
troubleshoot 32bit build
1 parent 36720aa commit 365733e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def _call_cython_op(
607607
# "rank" is the only member of cast_blocklist we get here
608608
res_dtype = self._get_result_dtype(orig_values.dtype)
609609
op_result = maybe_downcast_to_dtype(result, res_dtype)
610-
if self.how == "first":
610+
if self.how == "first" and result_mask is not None and self.uses_mask():
611611
# troubleshooting 32bit linux build
612612
assert res_dtype == orig_values.dtype, (res_dtype, orig_values.dtype)
613613
assert op_result.dtype == res_dtype, (

0 commit comments

Comments
 (0)