TST 27905 - testing groupby.transform('sum')
- [x] closes #27905
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

closing as a duplicate of #27974 