BUG: Fix series rename called with str altering name rather index (GH17407)
- [x] closes #17407
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
