-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
support for simple interpolation with new values #10811
Comments
Could you write up a sketch of what the API would look like? |
The API is simple: pass new_values as keyword argument to interpolate() On Wed, Aug 12, 2015, 10:16 PM Tom Augspurger [email protected]
|
What if there are missing values, are they interpolated at too?
|
On Thu, Aug 13, 2015, 7:32 AM Tom Augspurger [email protected]
|
I actually forgot .sort() before interpolate. On Thu, Aug 13, 2015, 9:08 AM Denis Akhiyarov [email protected]
|
And new_values should really handle 1d numpy arrays and python iterable On Thu, Aug 13, 2015, 9:12 AM Denis Akhiyarov [email protected]
|
and here is the function to enable this feature:
|
I agree that something like this would be useful -- in many cases this is exactly what I'm looking for with interpolation. Note that from an implementation perspective, this is also much closer to what scipy's interpolation functions already do. @denfromufa what would the full new function signature look like? e.g., we currently have this: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.interpolate.html |
FWIW, I think this might warrant a new method, e.g. |
I do recall some discussion about interpolate_at, possibly related to fillna (which is very similar to interpolate in functionality). Let me see if I can dredge up that discussion. On Thu, Aug 13, 2015 at 7:40 PM, Tom Augspurger [email protected]
|
On Thu, Aug 13, 2015, 9:52 PM Stephan Hoyer [email protected]
|
Thanks @denfromufa, let's close this one and move over the #9340. |
something along the lines:
The text was updated successfully, but these errors were encountered: