Skip to content


Subversion checkout URL

You can clone with
Download ZIP


limit keyword for interpolate #1892

changhiskhan opened this Issue · 2 comments

3 participants


need to also define whether limit is relative to most recent non-na or immediate next non-na

based on SO discussion in


I think this is a much needed feature of interpolation. I would also suggest that it works (or as an option better) slightly different from the 'limit' for fillna. Say limit=2, if there is a NaN gap of 2 it would be completely filled with interpolated values. If there is a NaN gap of 4 nothing is filled, which is different from the fillna limit where the two first entries would be filled when using forward filling. This is very applicable for time series where it is often valid to interpolate between small gaps, while larger gaps should not be filled.


closed via #4915

@jreback jreback closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.