Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class providing the base-class of operations.
Literal,
Self,
TypeAlias,
TypeVar,
Union,
cast,
final,
Expand Down Expand Up @@ -969,10 +968,6 @@ def __iter__(self) -> Iterator[tuple[Hashable, NDFrameT]]:
return result


# To track operations that expand dimensions, like ohlc
OutputFrameOrSeries = TypeVar("OutputFrameOrSeries", bound=NDFrame)


class GroupBy(BaseGroupBy[NDFrameT]):
"""
Class for grouping and aggregating relational data.
Expand Down Expand Up @@ -1194,9 +1189,7 @@ def _concat_objects(
return result.__finalize__(self.obj, method="groupby")

@final
def _set_result_index_ordered(
self, result: OutputFrameOrSeries
) -> OutputFrameOrSeries:
def _set_result_index_ordered(self, result: NDFrameT) -> NDFrameT:
# set the result index on the passed values object and
# return the new object, xref 8046

Expand Down
Loading