Skip to content

Commit 7fb7ca6

Browse files
committed
fixup
1 parent a477dc0 commit 7fb7ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ def result_index_and_ids(self) -> tuple[Index, np.ndarray]:
775775
if len(self.groupings) == 1:
776776
result_index = levels[0]
777777
result_index.name = names[0]
778-
ids = codes[0]
778+
ids = ensure_platform_int(codes[0])
779779
return result_index, ids
780780

781781
if any(obs):

0 commit comments

Comments
 (0)