Skip to content

Commit 87fcca5

Browse files
committed
revert
1 parent 089c0da commit 87fcca5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/resample/test_datetime_index.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,6 @@ def test_resample_median_bug_1688(dtype, unit):
12771277
index=dti,
12781278
dtype=dtype,
12791279
)
1280-
df.index = df.index.as_unit("ns")
12811280

12821281
result = df.resample("min").apply(lambda x: x.mean())
12831282
exp = df.asfreq("min")
@@ -1388,6 +1387,7 @@ def test_resample_timegrouper(dates, unit):
13881387
@pytest.mark.parametrize("dates", [dates1, dates2, dates3])
13891388
def test_resample_timegrouper2(dates, unit):
13901389
dates = DatetimeIndex(dates).as_unit(unit)
1390+
13911391
df = DataFrame({"A": dates, "B": np.arange(len(dates)), "C": np.arange(len(dates))})
13921392
result = df.set_index("A").resample("ME").count()
13931393

@@ -2132,7 +2132,6 @@ def test_resample_c_b_closed_right(freq: str, unit):
21322132
},
21332133
index=exp_dti,
21342134
).astype(f"M8[{unit}]")
2135-
21362135
tm.assert_frame_equal(result, expected)
21372136

21382137

0 commit comments

Comments
 (0)