BUG: grouby(axis=1) cannot select column names
- [x] closes #27614 
- [x] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
