Skip to content

Commit 81dab58

Browse files
committed
updated test with correct issue number and timedelta as index
1 parent 822f55e commit 81dab58

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/series/test_missing.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -892,12 +892,13 @@ def test_spline_error(self):
892892
s.interpolate(method='spline', order=0)
893893

894894
def test_interp_timedelta64(self):
895-
# GH 14799
895+
# GH 6424
896896
tm._skip_if_no_scipy()
897-
df = Series([1, np.nan, 3], index=pd.to_datetime([1, 2, 3], unit="d"))
897+
df = Series([1, np.nan, 3],
898+
index=pd.to_timedelta([1, 2, 3]))
898899
result = df.interpolate(method='time')
899900
expected = Series([1., 2., 3.],
900-
index=pd.to_datetime([1, 2, 3], unit="d"))
901+
index=pd.to_timedelta([1, 2, 3]))
901902
assert_series_equal(result, expected)
902903

903904

0 commit comments

Comments
 (0)