Backport PR #37198 on branch 1.1.x (BUG: Regression in Resample.apply raised error when apply affected only a Series)
Backport PR #37198: BUG: Regression in Resample.apply raised error when apply affected only a Series