CLN: F-string in pandas/tests/indexes/datetimes/test_to_period.py (#29547)
Issue #29547
- [x] tests passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

thanks