-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG/API: interpolate with limit=0 should mean no interpolation #9217
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
Comments
very confusing to have None and 0 mean different things why would you do this? |
I'm testing the results for different interpolation limits and thought a simple way to trigger no interpolation would be use I can see why |
Another sane API design would be to disallow |
ok I understand the reason and it makes sense though maybe a bit confusing (I get for testing this is useful) but from a user perspective u r like why have an option that makes the function do nothing? |
yep maybe limit > 0 makes more sense (but raise a ValueError) |
…#9217) closes pandas-dev#9217 Author: Matt Roeschke <[email protected]> Closes pandas-dev#14994 from mroeschke/fix_9217 and squashes the following commits: c1790ee [Matt Roeschke] Unify ValueError message and correct cython limits 6f041e6 [Matt Roeschke] Bug: Raise ValueError with interpolate limit = 0
Current behavior:
But in fact,
limit=0
in contrast tolimit=None
should mean no interpolation.The text was updated successfully, but these errors were encountered: