Skip to content
Advertisement

Tag: date-range

Creating date range pairs in pandas

I have two datetimes between which I would like to generate regular intervals of 4 hours (excluding the last interval, which can be less than 4 hours if there are less than 4 hours between the previous timestamp and end). I am stuck on interval generation with pandas.date_range, which only returns the end timestamp. For example: The aim is to

Advertisement