Fixed Inconsistent GroupBy Output Shape with Duplicate Column Labels
- [X] closes #21668 (and potentially a few others)
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
