-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
thanks ! |
the
check_pairwise_moment
function will be the last function moving out of bigConsistencyBase
class, and after this,ConsistencyBase
class only has the_create_data
function which creates some mock data, so we could entirely removeConsistencyBase
and useBase
instead.cc @jreback