-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
API DesignMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations
Milestone
Description
This code means the interpolator won't handle extrapolating to the front of the Series even though the underlying implementations may have no problem with the extrapolation.
See for example UnivariateSpline whose default behavior is extrapolation.
Interpolation works fine at the end of the Series.
For example:
s = pd.Series([1, 2, 3, 4, np.nan, 6, np.nan])
s.interpolate(method='spline', order=1)
0 1
1 2
2 3
3 4
4 5
5 6
6 7
dtype: float64but:
s = pd.Series([np.nan, 2, 3, 4, np.nan, 6, 7])
s.interpolate(method='spline', order=1)
0 NaN
1 2
2 3
3 4
4 5
5 6
6 7
dtype: float64minesh1291
Metadata
Metadata
Assignees
Labels
API DesignMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations