Skip to content

TST/REF: Deprivate check_pairwise_moment and remove ConsistencyBase #34119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 11, 2020

Conversation

charlesdong1991
Copy link
Member

@charlesdong1991 charlesdong1991 commented May 11, 2020

the check_pairwise_moment function will be the last function moving out of big ConsistencyBase class, and after this, ConsistencyBase class only has the _create_data function which creates some mock data, so we could entirely remove ConsistencyBase and use Base instead.

cc @jreback

def setup_method(self, method):
self._create_data()

def test_ewmcov_pairwise(self):
self._check_pairwise_moment("ewm", "cov", span=10, min_periods=5)
check_pairwise_moment(self.frame, "ewm", "cov", span=10, min_periods=5)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we turn these two test into 1 using pytest.mark.parameterize(func, ['cov', 'corr'])? Think there's similar potential below

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, good catch!
parametrized! also for that two tests in rolling

@charlesdong1991 charlesdong1991 changed the title TST/REF: Deprivate check_pairwise_moment function TST/REF: Deprivate check_pairwise_moment and remove ConsistencyBase May 11, 2020
@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Window rolling, ewma, expanding labels May 11, 2020
@jreback jreback added this to the 1.1 milestone May 11, 2020
@jreback jreback merged commit f05eb7f into pandas-dev:master May 11, 2020
@jreback
Copy link
Contributor

jreback commented May 11, 2020

thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants