Skip to content

Commit b4cf263

Browse files
committed
punt on 32bit build
1 parent f306262 commit b4cf263

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

pandas/_libs/groupby.pyx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,11 +1141,6 @@ def group_nth(
11411141

11421142
if uses_mask:
11431143
isna_entry = mask[i, j]
1144-
if isna_entry:
1145-
# set out[i, j] to 0 to be deterministic, as
1146-
# it was initialized with np.empty. Also ensures
1147-
# we can downcast out if appropriate.
1148-
out[i, j] = 0
11491144
else:
11501145
isna_entry = checknull(val)
11511146

@@ -1176,12 +1171,6 @@ def group_nth(
11761171

11771172
if uses_mask:
11781173
isna_entry = mask[i, j]
1179-
if isna_entry:
1180-
# set out[i, j] to 0 to be deterministic, as
1181-
# it was initialized with np.empty. Also ensures
1182-
# we can downcast out if appropriate.
1183-
out[i, j] = 0
1184-
11851174
else:
11861175
isna_entry = _treat_as_na(val, True)
11871176
# TODO: Sure we always want is_datetimelike=True?

pandas/core/groupby/ops.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,9 @@ def _masked_ea_wrap_cython_operation(
434434
)
435435

436436
dtype = self._get_result_dtype(orig_values.dtype)
437-
assert res_values.dtype == dtype.type, (res_values.dtype, dtype)
438437
# TODO: avoid cast as res_values *should* already have the right
439438
# dtype; last attempt ran into trouble on 32bit linux build
440-
# res_values = res_values.astype(dtype.type, copy=False)
439+
res_values = res_values.astype(dtype.type, copy=False)
441440

442441
if self.kind != "aggregate":
443442
out_mask = mask
@@ -607,14 +606,6 @@ def _call_cython_op(
607606
# "rank" is the only member of cast_blocklist we get here
608607
res_dtype = self._get_result_dtype(orig_values.dtype)
609608
op_result = maybe_downcast_to_dtype(result, res_dtype)
610-
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, (
614-
op_result.dtype,
615-
res_dtype,
616-
result,
617-
)
618609
else:
619610
op_result = result
620611

0 commit comments

Comments
 (0)