ENH: GH-35611 Tests for top-level Pandas functions serializable
- [x] closes #35611
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

thanks @ikedaosushi 