We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36720aa commit 365733eCopy full SHA for 365733e
pandas/core/groupby/ops.py
@@ -607,7 +607,7 @@ def _call_cython_op(
607
# "rank" is the only member of cast_blocklist we get here
608
res_dtype = self._get_result_dtype(orig_values.dtype)
609
op_result = maybe_downcast_to_dtype(result, res_dtype)
610
- if self.how == "first":
+ if self.how == "first" and result_mask is not None and self.uses_mask():
611
# troubleshooting 32bit linux build
612
assert res_dtype == orig_values.dtype, (res_dtype, orig_values.dtype)
613
assert op_result.dtype == res_dtype, (
0 commit comments