CLN 29574 Replace old string formating
Its my first contribution, modified the str formating to use fstrings
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ]  pandas/tests/frame/test_to_csv.py

Thanks @panjacek 