replaced one occurrence of `Appender` by `doc` decorator
- [X] xref #31942
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] replaces one use of `Appender` in pandas/core/generic.py with `doc`
