Use Pandas resample and asfreq()
to fill in missing data
#4
blaylockbk
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Mesonest station data is often reported at regular intervals. For example, this buoy reports every 10 minutes:
But if we plot it, there is obviously a period of time with missing data...
You can use Panda's resampling method to fill in the missing data by resampling the DataFrame to 10-minute interval and resample
asfreq()
so the data matches the resample frequencyBeta Was this translation helpful? Give feedback.
All reactions