DOC: Unclear documentation of inplace parameter for rename function.

- [X] closes #23076 
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
