We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df329c commit 77e7fc7Copy full SHA for 77e7fc7
pandas/core/groupby/generic.py
@@ -551,6 +551,7 @@ def _transform_general(
551
result = self._set_result_index_ordered(concatenated)
552
else:
553
result = concatenated.sort_index()
554
+ result.index = self._selected_obj.index[result.index.asi8]
555
556
result = self.obj._constructor(dtype=np.float64)
557
# we will only try to coerce the result type if
0 commit comments