From 2b35f661abf65cd7fda570cf0789ee957646e90d Mon Sep 17 00:00:00 2001 From: Brock Date: Tue, 14 Nov 2023 09:18:06 -0800 Subject: [PATCH] revert unnecessary --- pandas/tests/window/test_rolling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py index 81d322fdca82a0..1de9a4fd3168d2 100644 --- a/pandas/tests/window/test_rolling.py +++ b/pandas/tests/window/test_rolling.py @@ -265,7 +265,7 @@ def test_datetimelike_centered_offset_covers_all( Timestamp("20130101 09:00:02"), Timestamp("20130101 09:00:02"), ] - ).as_unit("ns") + ) df = frame_or_series([1, 1, 1], index=index) result = df.rolling(window, closed=closed, center=True).sum() @@ -296,7 +296,7 @@ def test_datetimelike_nonunique_index_centering( "2020-01-04", "2020-01-04", ] - ).as_unit("ns") + ) df = frame_or_series([1] * 8, index=index, dtype=float) expected = frame_or_series(expected, index=index, dtype=float) @@ -330,7 +330,7 @@ def test_variable_window_nonunique(closed, expected, frame_or_series): "2011-01-05", "2011-01-06", ] - ).as_unit("ns") + ) df = frame_or_series(range(10), index=index, dtype=float) expected = frame_or_series(expected, index=index, dtype=float)