resample('D').interpolate() fills value, but resample('Y').interpolate() produces nans?
resample('D').interpolate() fills value, but resample('Y').interpolate() produces nans? Question: Let’s start with two dates, two days apart, resample daily, and interpolate: In [1]: ts = pd.Series([1, 2], index=pd.DatetimeIndex([‘1950-01-01’, ‘1950-01-03’])) In [2]: ts.resample(‘D’).interpolate() Out[2]: 1950-01-01 1.0 1950-01-02 1.5 1950-01-03 2.0 Freq: D, dtype: float64 So far so good. Next, let’s try doing it with two dates two …