Issue 31175
State: closed

- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`


Labels:

Comments:
Hello @echozzy629! Thanks for updating 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/base.py`](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py):

> [Line 441:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py#L441): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (106 > 88 characters)
> [Line 442:17](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py#L442): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 442:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py#L442): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (132 > 88 characters)
> [Line 443:17](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py#L443): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 444:28](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py#L444): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 446:34](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py#L446): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 447:32](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py#L447): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 449:32](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py#L449): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 450:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/base.py#L450): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (96 > 88 characters)

* In the file [`pandas/core/groupby/groupby.py`](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py):

> [Line 1440:5](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1440): [E303](https://duckduckgo.com/?q=pep8%20E303) too many blank lines (2)
> [Line 1460:1](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1460): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 1469:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1469): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (119 > 88 characters)
> [Line 1475:1](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1475): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 1484:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1484): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (97 > 88 characters)
> [Line 1488:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1488): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (93 > 88 characters)
> [Line 1495:26](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1495): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1496:1](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1496): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 1497:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1497): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1498:13](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1498): [E116](https://duckduckgo.com/?q=pep8%20E116) unexpected indentation (comment)
> [Line 1498:13](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1498): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1499:17](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1499): [E711](https://duckduckgo.com/?q=pep8%20E711) comparison to None should be 'if cond is None:'
> [Line 1500:23](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1500): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1501:1](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1501): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 1502:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1502): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1503:19](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1503): [E711](https://duckduckgo.com/?q=pep8%20E711) comparison to None should be 'if cond is None:'
> [Line 1504:23](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1504): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1504:38](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1504): [E226](https://duckduckgo.com/?q=pep8%20E226) missing whitespace around arithmetic operator
> [Line 1506:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1506): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1507:63](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1507): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1508:23](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1508): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1509:63](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1509): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1511:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1511): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1515:64](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1515): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1517:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1517): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1519:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1519): [E115](https://duckduckgo.com/?q=pep8%20E115) expected an indented block (comment)
> [Line 1519:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1519): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1520:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1520): [E115](https://duckduckgo.com/?q=pep8%20E115) expected an indented block (comment)
> [Line 1520:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1520): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1521:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1521): [E115](https://duckduckgo.com/?q=pep8%20E115) expected an indented block (comment)
> [Line 1523:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1523): [E115](https://duckduckgo.com/?q=pep8%20E115) expected an indented block (comment)
> [Line 1523:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1523): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1525:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1525): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (112 > 88 characters)
> [Line 1526:1](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1526): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 1527:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1527): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1528:25](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1528): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1530:16](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1530): [E111](https://duckduckgo.com/?q=pep8%20E111) indentation is not a multiple of four
> [Line 1530:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1530): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (119 > 88 characters)
> [Line 1531:1](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1531): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 1533:22](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1533): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1537:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1537): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1537:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1537): [E303](https://duckduckgo.com/?q=pep8%20E303) too many blank lines (2)
> [Line 1538:16](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1538): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1538:30](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1538): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1540:16](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1540): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1540:51](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1540): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1541:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1541): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (130 > 88 characters)
> [Line 1544:13](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1544): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1546:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1546): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (90 > 88 characters)
> [Line 1548:17](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1548): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1553:21](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1553): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1554:22](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1554): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1557:28](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1557): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1558:32](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1558): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1559:32](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1559): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1563:28](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1563): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1567:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1567): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1568:9](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1568): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 1569:24](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1569): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1570:20](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1570): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1571:15](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1571): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1571:44](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1571): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 1571:60](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1571): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 1571:76](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1571): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 1572:20](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1572): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1575:26](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1575): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1575:89](https://github.com/pandas-dev/pandas/blob/8c0ed3fccc2feef1c4e35e3b30479f593a96e8b8/pandas/core/groupby/groupby.py#L1575): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (104 > 88 characters)



##### Comment last updated at 2020-04-13 04:01:10 UTC