Skip to content

Commit 9acff45

Browse files
committed
troubleshoot 32bit build
1 parent 9303302 commit 9acff45

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]
@@ -422,6 +424,8 @@ def _masked_ea_wrap_cython_operation(
422424
)
423425

424426
new_dtype = self._get_result_dtype(orig_values.dtype.numpy_dtype)
427+
# Troubleshooting 32bit build
428+
assert new_dtype == res_values.dtype, (new_dtype, res_values.dtype)
425429
dtype = BaseMaskedDtype.from_numpy_dtype(new_dtype)
426430
# TODO: avoid cast as res_values *should* already have the right
427431
# dtype; last attempt ran into trouble on 32bit linux build

0 commit comments

Comments
 (0)