From bc28f3f242d7a57a479e48a68ffb138e934aba8e Mon Sep 17 00:00:00 2001 From: Hadi Abdi Khojasteh Date: Tue, 19 Sep 2023 20:43:17 +0200 Subject: [PATCH] Update pandas/tests/window/test_rolling.py Co-authored-by: Joris Van den Bossche --- pandas/tests/window/test_rolling.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py index f30427a57d62f..bc99e63d63fc6 100644 --- a/pandas/tests/window/test_rolling.py +++ b/pandas/tests/window/test_rolling.py @@ -1954,17 +1954,7 @@ def test_numeric_only_corr_cov_series(kernel, use_arg, numeric_only, dtype): def test_rolling_rolling_sum_window_microseconds_confilict_timestamp(): # GH#55106 - df_time = DataFrame( - {"B": [0, 1, 2, 4, 5, 6]}, - index=[ - Timestamp("20130101 09:00:00"), - Timestamp("20130101 09:00:02"), - Timestamp("20130101 09:00:03"), - Timestamp("20130101 09:00:06"), - Timestamp("20130101 09:00:07"), - Timestamp("20130101 09:00:08"), - ], - ) + df = DataFrame({"A": range(5)}, index=date_range("2013-01-01", freq="1s", periods=5)) sum_in_nanosecs = df_time.rolling("1s").sum() # micro seconds / milliseconds should not breaks the correct rolling df_time.index = df_time.index.as_unit("us")