TST: Fixing broken doctests in pandas/core
- [X] xref #22459

Fixing 4 broken doctests, so we can validate the whole `pandas/core` directory. And also, significantly reduce the list of directories/files in the call to validate the doctests.