DOC: Fix quotes position in pandas.core (#24071)
- [x] closes #24071 
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

`./scripts/validate_docstrings.py --prefix=pandas.core --errors=GL01,GL02` is now silent.