Added test which fails for method='pad' · pandas-dev/pandas@eaacefd (original) (raw)
`@@ -1262,7 +1262,6 @@ def test_interp_max_gap(self):
`
1262
1262
`5., np.nan, np.nan, np.nan,
`
1263
1263
`-1., -1, -1
`
1264
1264
` ])
`
1265
``
-
1266
1265
`result = s.interpolate(method='linear', max_gap=2)
`
1267
1266
`assert_series_equal(result, excpected)
`
1268
1267
``
`@@ -1273,10 +1272,19 @@ def test_interp_max_gap(self):
`
1273
1272
`5., np.nan, np.nan, np.nan,
`
1274
1273
`-1., np.nan, np.nan
`
1275
1274
` ])
`
1276
``
-
1277
1275
`result = s.interpolate(method='linear', max_gap=2, limit_area='inside')
`
1278
1276
`assert_series_equal(result, excpected)
`
1279
1277
``
``
1278
`+
excpected = Series([
`
``
1279
`+
np.nan,
`
``
1280
`+
1., 1,
`
``
1281
`+
2., 2., 2.,
`
``
1282
`+
5., np.nan, np.nan, np.nan,
`
``
1283
`+
-1., np.nan, np.nan
`
``
1284
`+
])
`
``
1285
`+
result = s.interpolate(method='pad', max_gap=2, limit_area='inside')
`
``
1286
`+
assert_series_equal(result, excpected)
`
``
1287
+
1280
1288
`def test_interp_max_gap_errors(self):
`
1281
1289
`s = Series([
`
1282
1290
`np.nan,
`