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

New feature: support timedelta as limit when using interpolate method=time #10533

Closed
bertrandhaut opened this issue Jul 9, 2015 · 2 comments
Closed
Labels
Enhancement Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Timedelta Timedelta data type

Comments

@bertrandhaut
Copy link
Contributor

When we call the interpolate function based on time, it would be useful to be able to give a limit expressed as a timedelta (instead of a number of row).

Use case

  • I've a time series measurement of temperature in function of time. The measurements are not performed at a constant frequency
  • I want to interpolate missing data if the interpolation period is less than 1 hour.
@shoyer
Copy link
Member

shoyer commented Jul 20, 2015

This is similar to the proposed tolerance argument for reindexing (#10411) -- I suspect the implementation would be pretty similar.

For now, you can work around this by first resampling to a constant time interval, and then applying the interpolation.

@mroeschke mroeschke added Enhancement Numeric Operations Arithmetic, Comparison, and Logical operations Timedelta Timedelta data type Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff labels Oct 21, 2018
@mroeschke mroeschke removed the Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff label May 3, 2020
@mroeschke mroeschke added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate and removed Numeric Operations Arithmetic, Comparison, and Logical operations labels Apr 18, 2021
@mroeschke
Copy link
Member

Seems like there hasn't been much interest in this feature over the years so closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Timedelta Timedelta data type
Projects
None yet
Development

No branches or pull requests

3 participants