REF get-axis-number
State: closed

- [ ] closes #43408
- [ ] whatsnew entry
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them


Labels:

Comments:
Hello @ForthenchoPacino! 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/reshape/pivot.py`](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/core/reshape/pivot.py):

> [Line 317:1](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/core/reshape/pivot.py#L317): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace

* In the file [`pandas/io/formats/style.py`](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/io/formats/style.py):

> [Line 1152:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/io/formats/style.py#L1152): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1154:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/io/formats/style.py#L1154): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/apply/test_frame_apply.py`](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_apply.py):

> [Line 998:57](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_apply.py#L998): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1014:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_apply.py#L1014): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1025:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_apply.py#L1025): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1105:57](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_apply.py#L1105): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1118:64](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_apply.py#L1118): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1144:64](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_apply.py#L1144): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 1169:64](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_apply.py#L1169): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/apply/test_frame_transform.py`](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_transform.py):

> [Line 50:57](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_transform.py#L50): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 53:42](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/apply/test_frame_transform.py#L53): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/frame/methods/test_at_time.py`](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_at_time.py):

> [Line 105:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_at_time.py#L105): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 107:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_at_time.py#L107): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/frame/methods/test_between_time.py`](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_between_time.py):

> [Line 167:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_between_time.py#L167): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 172:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_between_time.py#L172): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 186:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_between_time.py#L186): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 193:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_between_time.py#L193): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/frame/methods/test_set_axis.py`](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_set_axis.py):

> [Line 37:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/frame/methods/test_set_axis.py#L37): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

* In the file [`pandas/tests/groupby/test_grouping.py`](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/groupby/test_grouping.py):

> [Line 550:46](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/groupby/test_grouping.py#L550): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator

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

> [Line 491:42](https://github.com/pandas-dev/pandas/blob/d00d22169aa49efb51e32809bdc6e5bb12f9f8e4/pandas/tests/window/test_rolling.py#L491): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator



##### Comment last updated at 2021-08-28 04:40:43 UTC
What is the motivation for any of this?
Why, as in? Like, is it a really inefficient method, or was the whole thing not needed?

Thanks @ForthenchoPacino for the PR. I think #43121 fixed the issue for pandas/io/formats/style.py and the other changes are to files in pandas/tests, see https://github.com/pandas-dev/pandas/issues/43048#issuecomment-907582458. so closing.