Backport PR #49676 on branch 1.5.x (REGR: Remove groupby's __getattribute__ for nth)
Backport PR #49676: REGR: Remove groupby's __getattribute__ for nth
@rhshadrach can you have a look at the CI please? The Mac error seems just a random crash, but the typing error seems like a genuine error. thx @rhshadrach 