Skip to content

TST: add test for rolling max with DatetimeIndex #29761

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

Conversation

ganevgv
Copy link
Contributor

@ganevgv ganevgv commented Nov 21, 2019

@ganevgv ganevgv force-pushed the tests/test_rolling_max_datetimeindex branch from 96f5103 to 8f66410 Compare November 21, 2019 01:32
@ganevgv ganevgv force-pushed the tests/test_rolling_max_datetimeindex branch from 8f66410 to 7852918 Compare November 21, 2019 02:21
@@ -1891,6 +1891,20 @@ def test_rolling_corr_with_zero_variance(self, window):

assert s.rolling(window=window).corr(other=other).isna().all()

def test_rolling_max_datetimeindex(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

move to tests/window/test_timeseries_window.py and put near similar tests (this might be a duplicate)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback, @jreback. Moved the test to tests/window/test_timeseries_window.py. This test is different by being the only one using minutes as frequency in the file. Other minor differences is that it's using Series as opposed to DataFrame and explicit definition of expected.

Having said that, I agree that there are very similar tests and I'm happy to remove it all together.

Copy link
Member

Choose a reason for hiding this comment

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

@ganevgv if you would like to clean that up and parametrize frequencies / containers that would be very welcome

@jreback jreback added Window rolling, ewma, expanding Testing pandas testing functions or related to the test suite labels Nov 22, 2019
@ganevgv ganevgv requested a review from jreback November 23, 2019 17:41
@WillAyd WillAyd added this to the 1.0 milestone Nov 23, 2019
@jreback jreback merged commit 443138b into pandas-dev:master Nov 25, 2019
@jreback
Copy link
Contributor

jreback commented Nov 25, 2019

thanks @ganevgv

I would love if you could parametrize some of these tests (e.g. also test min) in a followup if you can.

ganevgv added a commit to ganevgv/pandas that referenced this pull request Nov 29, 2019
ganevgv added a commit to ganevgv/pandas that referenced this pull request Nov 30, 2019
@ganevgv
Copy link
Contributor Author

ganevgv commented Nov 30, 2019

Thanks for the feedback @jreback, @WillAyd - created a new PR using parametrize over different operations and frequencies - #29932

proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
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.

regression in 0.23.0 on rolling max with DatetimeIndex.
3 participants