Skip to content

Commit

Permalink
REF: Remove BinGrouper.__iter__ (#54544)
Browse files Browse the repository at this point in the history
  • Loading branch information
taytzehao authored Aug 19, 2023
1 parent 5834266 commit 9d70a49
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pandas/core/groupby/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,9 +996,6 @@ def groups(self):
}
return result

def __iter__(self) -> Iterator[Hashable]:
return iter(self.groupings[0].grouping_vector)

@property
def nkeys(self) -> int:
# still matches len(self.groupings), but we can hard-code
Expand Down

0 comments on commit 9d70a49

Please sign in to comment.