Skip to main content
Solved

Fill gaps in time series data?


jacklonsdale
Contributor
Forum|alt.badge.img+4

Hi all,

I have a 15 minute timestep data which has random missing values (expected). I’ve managed to track where the data has gaps, but in order to calculate a consistent rolling 24 average of the value I need to fill these missing gaps with a timestep but null value (so i can calculate an average from the preceding X values)

Does anyone have any suggestions on how to fill these data gaps automatically? Or better still calculate a 24 hour rolling average using specific timesteps rather than just number of rows?

 

Thanks 

Best answer by geomancer

You can create all the timestamps you should have, and merge these with your actual data stream to get a continuous series of timestamps.

 

View original
Did this help you find an answer to your question?

3 replies

geomancer
Evangelist
Forum|alt.badge.img+48
  • Evangelist
  • Best Answer
  • May 13, 2024

You can create all the timestamps you should have, and merge these with your actual data stream to get a continuous series of timestamps.

 


jacklonsdale
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • May 13, 2024

Thank you this worked perfectly


geomancer
Evangelist
Forum|alt.badge.img+48
  • Evangelist
  • May 13, 2024

You're welcome!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings