Skip to content

Commit 36720aa

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/core/groupby/ops.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,14 @@ 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":
611+
# troubleshooting 32bit linux build
612+
assert res_dtype == orig_values.dtype, (res_dtype, orig_values.dtype)
613+
assert op_result.dtype == res_dtype, (
614+
op_result.dtype,
615+
res_dtype,
616+
result,
617+
)
610618
else:
611619
op_result = result
612620

0 commit comments

Comments
 (0)