Skip to content

Commit 3fa0f6a

Browse files
committed
troubleshoot 32bit build
1 parent 221c3aa commit 3fa0f6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/groupby/ops.py

+4
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ def _reconstruct_ea_result(
375375

376376
elif isinstance(values.dtype, BaseMaskedDtype):
377377
new_dtype = self._get_result_dtype(values.dtype.numpy_dtype)
378+
# Troubleshooting 32bit build
379+
assert new_dtype == res_values.dtype, (new_dtype, res_values.dtype)
378380
# error: Incompatible types in assignment (expression has type
379381
# "BaseMaskedDtype", variable has type "StringDtype")
380382
dtype = BaseMaskedDtype.from_numpy_dtype( # type: ignore[assignment]
@@ -426,6 +428,8 @@ def _masked_ea_wrap_cython_operation(
426428
)
427429

428430
new_dtype = self._get_result_dtype(orig_values.dtype.numpy_dtype)
431+
# Troubleshooting 32bit build
432+
assert new_dtype == res_values.dtype, (new_dtype, res_values.dtype)
429433
dtype = BaseMaskedDtype.from_numpy_dtype(new_dtype)
430434
# TODO: avoid cast as res_values *should* already have the right
431435
# dtype; last attempt ran into trouble on 32bit linux build

0 commit comments

Comments
 (0)