BUG: Enable changing dtype of column where column names are not unique
- [ ] closes #22035, partially #24798
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
