DOC: Fixing EX03 - Removing flake8 errors in docstrings
[x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

Towards #27977


Nice thanks @DeaMariaLeon 