I have some input data, with timestamps in the input file in the form of hours from the date time specified in the filename.
This is a bit useless, so I need to conv
With modern NumPy you can do this:
np.arange(np.datetime64('2017-01-01'), np.datetime64('2017-01-08'))
And it gives you:
array(['2017-01-01', '2017-01-02', '2017-01-03', '2017-01-04', '2017-01-05', '2017-01-06', '2017-01-07'], dtype='datetime64[D]')