BUG: groupby with resample using on parameter errors when selecting column to apply function
- [x] closes #17813
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
