BUG GH31355 fixed by adding more relevant error message
- [ ] closes #31355 
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

Added a test to trigger the reported error using code from the issue. An if statement was included to return a more helpful error message - borrowing the solution from the issue. 
Hello @TAJD! 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/_testing.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py):

> [Line 2900:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2900): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 2900:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2900): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 2902:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2902): [E112](https://duckduckgo.com/?q=pep8%20E112) expected an indented block
> [Line 2902:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2902): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 2902:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2902): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 2902:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2902): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 2902:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2902): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 2904:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2904): [E112](https://duckduckgo.com/?q=pep8%20E112) expected an indented block
> [Line 2904:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2904): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 2904:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/_testing.py#L2904): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator



* In the file [`pandas/core/construction.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/construction.py):

> [Line 53:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/construction.py#L53): [E112](https://duckduckgo.com/?q=pep8%20E112) expected an indented block
> [Line 53:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/construction.py#L53): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 53:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/construction.py#L53): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 54:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/construction.py#L54): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 57:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/construction.py#L57): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 57:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/construction.py#L57): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 57:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/construction.py#L57): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 59:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/construction.py#L59): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator



* In the file [`pandas/core/dtypes/dtypes.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py):

> [Line 398:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py#L398): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 398:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py#L398): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 398:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py#L398): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 400:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py#L400): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 400:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py#L400): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 400:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py#L400): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 400:8](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py#L400): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 402:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py#L402): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 402:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/dtypes/dtypes.py#L402): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator









* In the file [`pandas/core/internals/managers.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py):

> [Line 3:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L3): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 3:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L3): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 7:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L7): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 7:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L7): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 7:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L7): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 7:8](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L7): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 10:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L10): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 10:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L10): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 15:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L15): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 15:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L15): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 15:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L15): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 17:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L17): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 17:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L17): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 17:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L17): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 17:8](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L17): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 18:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L18): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 18:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L18): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1884:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1884): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 1884:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1884): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1884:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1884): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 1885:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1885): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 1888:16](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1888): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1888:18](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1888): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1889:30](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1889): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1889:32](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1889): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1911:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1911): [E123](https://duckduckgo.com/?q=pep8%20E123) closing bracket does not match indentation of opening bracket's line
> [Line 1917:23](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1917): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1917:25](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1917): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1920:30](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1920): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1920:32](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1920): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1924:13](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1924): [E123](https://duckduckgo.com/?q=pep8%20E123) closing bracket does not match indentation of opening bracket's line
> [Line 1927:11](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1927): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1927:13](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1927): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1929:11](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1929): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1929:13](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1929): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1933:9](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1933): [E123](https://duckduckgo.com/?q=pep8%20E123) closing bracket does not match indentation of opening bracket's line
> [Line 1937:13](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1937): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1937:15](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1937): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1939:10](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1939): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1939:12](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1939): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1946:11](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1946): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1946:13](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1946): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1951:12](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1951): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1951:14](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1951): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1952:18](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1952): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1952:20](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1952): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1953:15](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1953): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1953:17](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1953): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1959:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1959): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 1959:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1959): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1959:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1959): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1959:8](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1959): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 1960:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1960): [E122](https://duckduckgo.com/?q=pep8%20E122) continuation line missing indentation or outdented
> [Line 1960:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/internals/managers.py#L1960): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator



* In the file [`pandas/core/window/rolling.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/window/rolling.py):

> [Line 2214:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/window/rolling.py#L2214): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 2214:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/window/rolling.py#L2214): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 2214:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/window/rolling.py#L2214): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 2215:9](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/window/rolling.py#L2215): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 2216:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/window/rolling.py#L2216): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 2216:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/window/rolling.py#L2216): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 2216:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/window/rolling.py#L2216): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 2218:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/core/window/rolling.py#L2218): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/plotting/_matplotlib/core.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/core.py):

> [Line 1147:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/core.py#L1147): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 1147:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/core.py#L1147): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1148:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/core.py#L1148): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 1155:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/core.py#L1155): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1155:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/core.py#L1155): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1155:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/core.py#L1155): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1157:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/core.py#L1157): [E112](https://duckduckgo.com/?q=pep8%20E112) expected an indented block
> [Line 1157:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/core.py#L1157): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/plotting/_matplotlib/timeseries.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/timeseries.py):

> [Line 27:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/timeseries.py#L27): [E112](https://duckduckgo.com/?q=pep8%20E112) expected an indented block
> [Line 27:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/timeseries.py#L27): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 27:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/timeseries.py#L27): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 28:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/timeseries.py#L28): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 29:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/timeseries.py#L29): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 29:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/timeseries.py#L29): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 29:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/timeseries.py#L29): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 31:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/plotting/_matplotlib/timeseries.py#L31): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/base/test_factorize.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/base/test_factorize.py):

> [Line 37:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/base/test_factorize.py#L37): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 1
> [Line 37:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/base/test_factorize.py#L37): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 37:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/base/test_factorize.py#L37): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 38:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/base/test_factorize.py#L38): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 39:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/base/test_factorize.py#L39): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 39:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/base/test_factorize.py#L39): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 39:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/base/test_factorize.py#L39): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 41:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/base/test_factorize.py#L41): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator







* In the file [`pandas/tests/frame/test_block_internals.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/frame/test_block_internals.py):

> [Line 631:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/frame/test_block_internals.py#L631): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 631:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/frame/test_block_internals.py#L631): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 632:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/frame/test_block_internals.py#L632): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 632:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/frame/test_block_internals.py#L632): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 632:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/frame/test_block_internals.py#L632): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 651:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/frame/test_block_internals.py#L651): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/groupby/aggregate/test_aggregate.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/groupby/aggregate/test_aggregate.py):

> [Line 1066:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/groupby/aggregate/test_aggregate.py#L1066): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 1066:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/groupby/aggregate/test_aggregate.py#L1066): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1067:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/groupby/aggregate/test_aggregate.py#L1067): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1067:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/groupby/aggregate/test_aggregate.py#L1067): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1067:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/groupby/aggregate/test_aggregate.py#L1067): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1147:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/groupby/aggregate/test_aggregate.py#L1147): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator







* In the file [`pandas/tests/io/test_gcs.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py):

> [Line 33:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L33): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 33:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L33): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 34:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L34): [E302](https://duckduckgo.com/?q=pep8%20E302) expected 2 blank lines, found 0
> [Line 36:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L36): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 36:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L36): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 36:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L36): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 36:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L36): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 39:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L39): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 39:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L39): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 60:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L60): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 60:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L60): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 61:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L61): [E302](https://duckduckgo.com/?q=pep8%20E302) expected 2 blank lines, found 0
> [Line 63:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L63): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 63:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L63): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 63:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L63): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 63:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L63): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 66:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L66): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 66:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/io/test_gcs.py#L66): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/plotting/common.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/common.py):

> [Line 16:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/common.py#L16): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 16:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/common.py#L16): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 21:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/common.py#L21): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 21:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/common.py#L21): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 21:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/common.py#L21): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 22:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/common.py#L22): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/plotting/test_misc.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_misc.py):

> [Line 404:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_misc.py#L404): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 1
> [Line 404:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_misc.py#L404): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 404:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_misc.py#L404): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 405:9](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_misc.py#L405): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 406:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_misc.py#L406): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 406:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_misc.py#L406): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 406:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_misc.py#L406): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 408:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_misc.py#L408): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/plotting/test_series.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_series.py):

> [Line 831:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_series.py#L831): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 1
> [Line 831:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_series.py#L831): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 831:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_series.py#L831): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 832:9](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_series.py#L832): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 833:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_series.py#L833): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 833:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_series.py#L833): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 833:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_series.py#L833): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 835:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/plotting/test_series.py#L835): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator









* In the file [`pandas/tests/series/test_constructors.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/series/test_constructors.py):

> [Line 1467:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/series/test_constructors.py#L1467): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 1467:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/series/test_constructors.py#L1467): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 1467:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/series/test_constructors.py#L1467): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1469:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/series/test_constructors.py#L1469): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 1478:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/series/test_constructors.py#L1478): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1478:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/series/test_constructors.py#L1478): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1478:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/series/test_constructors.py#L1478): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1479:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/series/test_constructors.py#L1479): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/util/test_assert_frame_equal.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_frame_equal.py):

> [Line 271:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_frame_equal.py#L271): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 271:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_frame_equal.py#L271): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 271:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_frame_equal.py#L271): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 272:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_frame_equal.py#L272): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 272:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_frame_equal.py#L272): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 272:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_frame_equal.py#L272): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 288:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_frame_equal.py#L288): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 288:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_frame_equal.py#L288): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/util/test_assert_series_equal.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_series_equal.py):

> [Line 307:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_series_equal.py#L307): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 307:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_series_equal.py#L307): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 307:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_series_equal.py#L307): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 308:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_series_equal.py#L308): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 308:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_series_equal.py#L308): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 308:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_series_equal.py#L308): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 324:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_series_equal.py#L324): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 0
> [Line 324:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/util/test_assert_series_equal.py#L324): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/window/test_grouper.py`](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py):

> [Line 212:1](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L212): [E305](https://duckduckgo.com/?q=pep8%20E305) expected 2 blank lines after class or function definition, found 1
> [Line 212:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L212): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 212:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L212): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 213:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L213): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 214:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L214): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 214:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L214): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 214:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L214): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 215:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L215): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 281:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L281): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 281:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L281): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 282:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L282): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 283:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L283): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 283:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L283): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 283:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L283): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 284:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L284): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 310:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L310): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 310:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L310): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 311:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L311): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 312:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L312): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 312:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L312): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 312:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L312): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 313:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L313): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 337:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L337): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 337:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L337): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 338:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L338): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 339:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L339): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 339:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L339): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 339:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L339): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 340:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L340): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 365:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L365): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 365:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L365): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 366:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L366): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 367:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L367): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 367:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L367): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 367:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L367): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 368:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L368): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 395:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L395): [E227](https://duckduckgo.com/?q=pep8%20E227) missing whitespace around bitwise or shift operator
> [Line 395:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L395): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 397:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L397): [E113](https://duckduckgo.com/?q=pep8%20E113) unexpected indentation
> [Line 430:3](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L430): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 430:5](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L430): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 430:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L430): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 431:7](https://github.com/pandas-dev/pandas/blob/76066eccc5f81ed98e919dbce604e7dd1d3fd3d1/pandas/tests/window/test_grouper.py#L431): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator



##### Comment last updated at 2020-09-13 11:52:47 UTC Not sure how to fix the test failures - have these been seen before? The failure looks related:

    FAILED pandas/tests/test_sorting.py::TestSafeSort::test_codes_out_of_bound[-1]

This test ends up calling `cartesian_product` with the argument

    X = [array([0, 1], dtype=int8), array([0, 1], dtype=int8), array([0, 1, 2], dtype=int8)]
 My working hypothesis is that the worker failure could be due to the size of the array created to test if the error is being raised. 

Using tracemalloc it can be seen that the memory allocated during cartesian_product with X as the above value or using the test case for error bounds is around 4 petabytes. This sort of thing breaks the code when the memory is actually created. What I'm wondering is on how to limit the size of the array which is created or whether there is a way to pick a test input which triggers the error without breaking the machine being used. @TAJD you need to merge master Thanks @jreback I should have read the documentation!