DOC: Fixing PR09 formatting errors
-  part of #28602 
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

just the good stuff from #29530 
thanks @HughKelley 