When I am trying to use x=df1.index as a argument in df1.plot.line() I am getting this keyerror but when I am just printing it I am getting output please help me resolving t