-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
[WIP] TST/MAINT: split up test_resample.py (GH17806) #17808
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
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.
is there a file for period tests?
return factory(*args, **kwargs) | ||
|
||
@pytest.fixture | ||
def _index_start(self): |
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.
we can prob de-privatize these (_index_start -> index_start)
bday = BDay() | ||
|
||
# The various methods we support | ||
downsample_methods = ['min', 'max', 'first', 'last', 'sum', 'mean', 'sem', |
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.
is there a reason you just didn't put these in base.py?
|
||
assert_frame_equal(frame.resample('60s').mean(), frame_3s) | ||
|
||
def test_resample_timedelta_values(self): |
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.
can move this one
freq='D', tz='Europe/Paris')), | ||
'D Frequency') | ||
|
||
def test_resample_with_nat(self): |
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.
ideally push this down to base os can do for all types of resampling (can be future PR)
@@ -0,0 +1,220 @@ | |||
# pylint: disable=E1101 | |||
|
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.
you need to add this sub-dir in setup.py
(pandas.tests.resample)
@winklerand love for you to continue on this. pls rebase when you can. |
can you rebase this |
closing as stale. if you want to continue working, pls ping. |
git diff upstream/master -u -- "*.py" | flake8 --diff