BUG: GH36212 DataFrame agg() raises error when DataFrame column name is `name`
- [x] closes #36212 
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry