Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FillNA limits for Interpolate, NOCB, LOCF #110

Closed
adinhobl opened this issue Mar 16, 2021 · 1 comment · Fixed by #117
Closed

FillNA limits for Interpolate, NOCB, LOCF #110

adinhobl opened this issue Mar 16, 2021 · 1 comment · Fixed by #117

Comments

@adinhobl
Copy link

Hi,

In Pandas DataFrames, their methods for interpolating and fillna have a limit keyword, which essentially cuts the imputing routine short after a certain number of fills.

This is useful if you want to forward fill timeseries data by a "reasonable" amount, but not necessarily to the next point. Is this implemented somewhere else, or would it be useful in this package? Or is there a trivial workaround I haven't thought of. I'm not averse to trying to implement it myself.

Thanks!

@rofinn
Copy link
Member

rofinn commented Apr 16, 2021

Please take a look at #117 to confirm that it does what you'd like. LOCF and NOCB will fill up-to the limit, but Interpolate will only fill gap_sz <= limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants