I have a dataframe df. I tried to convert it to DateTime index but didn't get an exact solution yet.
India China
date
2018M06 2 1
2018M05 1 2
2018M04 3 1
. . .
. . .
. . .
Here date in an index of dataframe type 'pandas.core.indexes.base.Index' .