Replaced .format with f- strings
xref #29547
for
- [ ] pandas/util/_print_versions.py
- [ ] pandas/tests/tseries/frequencies/test_to_offset.py

Please can you use 1 PR and push the commit to the same branch? https://github.com/pandas-dev/pandas/pull/31627

Thanks #31627 is closed now
There is only one PR thanks @leandermaben  Thank you so much @jreback 