I am a python newbie so please excuse this basic question. My .xlsx File looks like this
Unnamend:1 A Unnamend:2 B
2015-01-01 10 2015-01-01 10
2015-01-02 20 2015-01-01 20
2015-01-03 30 NaT NaN
When I read it in Python using pandas.read_excel(...) pandas automatically uses the first column as the time index.
Is there a one-liner that tells pandas to notice, that every second column is a time index belonging to the time series right next to it?
The desired output would look like this:
date A B
2015-01-01 10 10
2015-01-02 20 20
2015-01-03 30 NaN