BUG: Exactly same if check multiple times
Hi, I came across the below while working on another bug.

https://github.com/pandas-dev/pandas/blob/e8f359348a601f303e19dc33fc66f0b602efce50/pandas/core/groupby/groupby.py#L2445-L2450