-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Open
Labels
Closing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Description
Pandas version checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
from pandas import NA, Series
from numpy import nan
s1 = Series([1.0, NA, 2.0])
s2 = Series([1.0, nan, 2.0])
s3 = Series([1.0, None, 2.0])
s1.interpolate() # Series([1.0, NA, 2.0])
s2.interpolate() # Series([1.0, 1.5, 2.0])
s3.interpolate() # Series([1.0, 1.5, 2.0])
Issue Description
This actually works:
s = Series([1, NA, 2], dtype=pd.Float64Dtype())
s.interpolate("ffill")
But there are also error messages about interpolation methods that are not documented in Series.interpolate
.
You cannot linearly interpolate over Float64Dtype though.
Expected Behavior
Similar to underlying None
and nan
versions.
Installed Versions
Replace this line with the output of pd.show_versions()
Metadata
Metadata
Assignees
Labels
Closing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate