Analytics.py fixtures added
State: closed

- [ ] Analytics.py tests passed
- Analytics.py fixtures added for issue #22471


Labels:
name: Testing
description: pandas testing functions or related to the test suite
name: Clean

Comments:
Hello @akulagrawal! Thanks for updating the PR.

 - In the file [`pandas/tests/frame/test_analytics.py`](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py), following                are the PEP8 issues :
> [Line 792:1](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L792): [E101](https://duckduckgo.com/?q=pep8%20E101) indentation contains mixed spaces and tabs
> [Line 792:1](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L792): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 792:10](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L792): [E128](https://duckduckgo.com/?q=pep8%20E128) continuation line under-indented for visual indent
> [Line 1329:61](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L1329): [W291](https://duckduckgo.com/?q=pep8%20W291) trailing whitespace
> [Line 1330:1](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L1330): [E101](https://duckduckgo.com/?q=pep8%20E101) indentation contains mixed spaces and tabs
> [Line 1330:1](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L1330): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 1330:10](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L1330): [E128](https://duckduckgo.com/?q=pep8%20E128) continuation line under-indented for visual indent
> [Line 1845:1](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L1845): [E101](https://duckduckgo.com/?q=pep8%20E101) indentation contains mixed spaces and tabs
> [Line 1845:1](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L1845): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 1845:9](https://github.com/akulagrawal/pandas/blob/2cc33fa2edc434c7287a4dd8e6d9f850659ad199/pandas/tests/frame/test_analytics.py#L1845): [E128](https://duckduckgo.com/?q=pep8%20E128) continuation line under-indented for visual indent




##### Comment last updated on October 02, 2018 at 04:59 Hours UTC
Oh yes. Corrected!
There's some issue with conftest.py which wasn't earlier.
@akulagrawal 
There's an open PR for the `test_analytics.py` module at #22733 - I've referenced PRs where they exist in #22471, please check before-hand. In this case, I would recommend closing this PR and focussing on other modules.

BTW, the reason this doesn't work is that there are class methods `_check_stat_op` and `_check_bool_op` which make fixturization harder. Again, I would recommend to test locally before you push, and get rid of all errors.