I have a dataframe with the following MultiIndex and I need to replace that index with a single index (called 'date') which should be composed of both the day and the hours/minutes.
Currently I'm using df.reset_index(level=[0,1])
I believe I now need to re-create the index from the resulting 'date' (datetime64) and 'minute' (e.g. 09:30).
Is the simplest approach to convert that datetime object to a string, and then use to_datetime()?
df.index
MultiIndex([('2020-10-08', '09:30'),
('2020-10-08', '09:31'),
('2020-10-08', '09:32'),
('2020-10-08', '09:33'),
('2020-10-08', '09:34'),
('2020-10-08', '09:35'),