Fixed docstrings as referenced in issue no: #24071
- [1] closes #24071 
- [1] tests added / passed
- [0] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [0] whatsnew entry

tests : `./scripts/validate_docstrings.py --prefix=pandas.core --errors=GL01,GL02`