DOC: Update series apply docstring. GH22459
- [X] refs #22459
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Updated `Series.apply` docstring to resolve errors raised from scripts/validate_docstrings.py from #22459.