Skip to content

[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

Closed
wants to merge 1 commit into from

Conversation

winklerand
Copy link
Contributor

@sinhrks sinhrks added Clean Testing pandas testing functions or related to the test suite labels Oct 6, 2017
Copy link
Contributor

@jreback jreback left a 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):
Copy link
Contributor

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',
Copy link
Contributor

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):
Copy link
Contributor

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):
Copy link
Contributor

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

Copy link
Contributor

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)

@jreback
Copy link
Contributor

jreback commented Nov 12, 2017

@winklerand love for you to continue on this. pls rebase when you can.

@jreback
Copy link
Contributor

jreback commented Nov 26, 2017

can you rebase this

@jreback
Copy link
Contributor

jreback commented Jan 21, 2018

closing as stale. if you want to continue working, pls ping.

@jreback jreback closed this Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TST/MAINT: split up test_resample.py to make it more understandable
3 participants