New branch
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Hello @RuchitaD1! 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 [`pandas/core/generic.py`](https://github.com/pandas-dev/pandas/blob/9f00f52adc6b238c31d572b084f4629862ace1df/pandas/core/generic.py):

> [Line 6674:9](https://github.com/pandas-dev/pandas/blob/9f00f52adc6b238c31d572b084f4629862ace1df/pandas/core/generic.py#L6674): [E303](https://duckduckgo.com/?q=pep8%20E303) too many blank lines (2)
> [Line 6676:17](https://github.com/pandas-dev/pandas/blob/9f00f52adc6b238c31d572b084f4629862ace1df/pandas/core/generic.py#L6676): [E117](https://duckduckgo.com/?q=pep8%20E117) over-indented (comment)
> [Line 6677:17](https://github.com/pandas-dev/pandas/blob/9f00f52adc6b238c31d572b084f4629862ace1df/pandas/core/generic.py#L6677): [E117](https://duckduckgo.com/?q=pep8%20E117) over-indented (comment)
> [Line 6679:17](https://github.com/pandas-dev/pandas/blob/9f00f52adc6b238c31d572b084f4629862ace1df/pandas/core/generic.py#L6679): [E117](https://duckduckgo.com/?q=pep8%20E117) over-indented
> [Line 6684:17](https://github.com/pandas-dev/pandas/blob/9f00f52adc6b238c31d572b084f4629862ace1df/pandas/core/generic.py#L6684): [E303](https://duckduckgo.com/?q=pep8%20E303) too many blank lines (2)
> [Line 6687:21](https://github.com/pandas-dev/pandas/blob/9f00f52adc6b238c31d572b084f4629862ace1df/pandas/core/generic.py#L6687): [E303](https://duckduckgo.com/?q=pep8%20E303) too many blank lines (2)







