I am analysing meteorological data which is taken at non-standard intervals so the time/date entries are not all consecutive. The csv file has been read into a pandas dataframe using:
df4=pd.read_csv(datafilenew,parse_dates[1],infer_datetime_format=True,na_values=['M'])
I want to select chunks of data which are consecutive, for example every set of at least 5 rows which have consecutive time/date values. Here is a screenshot of a section of data. I would want to select all the entries from 2011-09-10 from this example and then continue to scan the rest of the data and select other consecutive sets of rows.
Is there a simple way to do this as I am completely at a loss. Thanks.