DOC: Fix code style in documentation
ref #36777 

Hello @erfannariman! Thanks for opening this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

* In the file [`test.py`](https://github.com/pandas-dev/pandas/blob/2976283611fc711c2452612d8fd45225cf7a308d/test.py):

> [Line 3:3](https://github.com/pandas-dev/pandas/blob/2976283611fc711c2452612d8fd45225cf7a308d/test.py#L3): [W292](https://duckduckgo.com/?q=pep8%20W292) no newline at end of file

 @dsaxton the changes I made now are all done with black itself.  Thanks @erfannariman!