interpolate erroneously fills NaNs at start of series when limit_direction == 'both' #11115
Labels
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Milestone
PR #10691 had a bug in computing the NaN mask in certain cases.
Specifically, when a NaN occurs within
limit
of the beginning of the series andlimit_direction
is set to'both'
, the interpolation code will erroneously interpolate these NaNs rather than masking them off.From the PR:
This should actually give:
The text was updated successfully, but these errors were encountered: