Replaced !r with repr()
- [x] reference #29886
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

Issue: https://github.com/pandas-dev/pandas/issues/29886

@WillAyd 