Skip to content

Commit bdda2c2

Browse files
committed
fix series indexing
1 parent d560e89 commit bdda2c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/groupby/generic.py

+1
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ def _transform_general(
551551
result = self._set_result_index_ordered(concatenated)
552552
else:
553553
result = concatenated.sort_index()
554+
result.index = self._selected_obj.index[result.index.asi8]
554555
else:
555556
result = self.obj._constructor(dtype=np.float64)
556557
# we will only try to coerce the result type if

0 commit comments

Comments
 (0)