I have a dataset that is made up of timestamp readings for pressure that should be recorded and returned every 15 minutes. The example data below shows that there are gaps greater than 15 minutes in the data set
I have been trying to find a way to add in a count column that counts how many readings are missing between received ones, such that a 15-minute interval = 0 (missed readings), a half-hour gap = 1 (missed reading )and a 45-minute gap = 2, etc.
At this stage I don't have any code that I would want to show because I am still a long way off, although I have been working around this post, but still not succeeding. How Can I Detect Gaps and Consecutive Periods In A Time Series In Pandas
Any pointers would be greatly appreciated
Place date pressure (m)
Somewhere 01/09/2019 00:00 34
Somewhere 01/09/2019 00:30 34
Somewhere 01/09/2019 00:45 34
Somewhere 01/09/2019 01:15 34
Somewhere 01/09/2019 01:30 34
Somewhere 01/09/2019 02:15 34
Somewhere 01/09/2019 02:30 34
Somewhere 01/09/2019 02:45 34
Somewhere 01/09/2019 03:15 34
Somewhere 01/09/2019 03:30 34
Somewhere 01/09/2019 03:45 34.5
Somewhere 01/09/2019 04:00 34
Somewhere 01/09/2019 04:15 34
Somewhere 01/09/2019 06:45 33.5
Somewhere 01/09/2019 07:00 33.5
Somewhere 01/09/2019 07:30 34