Coming from a MultiIndex
:
I can select the TimeIndex
using get_level_values
hist_vol_to_display.index.get_level_values('ts_timeonly')
So all of the rows have happend on a specific date (e.g. 2019-09-16).
What is an efficient way to replace the TimeIndex
with a DateTimeIndex
?
Can I replace the Index inplace
or do I need to work around this using a new column? Thanks!