Backport PR #35639 on branch 1.1.x (BUG: RollingGroupby with closed and column selection no longer raises ValueError)
Backport PR #35639: BUG: RollingGroupby with closed and column selection no longer raises ValueError