I have some measurements that happened on specific days in a dictionary. It looks like
date_dictionary['YYYY-MM-DD'] = measurement
.
I want to calculate the variance between the measurements within 7 days from a given date. When I convert the date strings to a datetime.datetime
, the result looks like a tuple or an array, but doesn't behave like one.
Is there an easy way to generate all the dates one week from a given date? If so, how can I do that efficiently?