Hope someone can help with plot problem that I know how to solve in Excel (axis type date/text), but how to do in Pandas. I want to plot timeseries with x-axis timestamp but graph print wrong like this pic Plot of timeseries with x-axis timestamp, graph is not fine
I read data like this:
paine = pd.read_csv('c:\data\paine3.csv', sep = ';', decimal = '.', skiprows=0,
parse_dates=[['Date', 'Time']])
Date_Time bar Temp V
0 2021-06-01 17:00:00 7.16 25.97 4.0
1 2021-06-01 17:00:03 7.17 26.00 4.0
2 2021-06-01 17:00:06 7.18 26.00 4.0
3 2021-06-01 17:00:09 7.19 25.93 4.0
4 2021-06-01 17:00:12 7.19 26.00 4.0
If I plot before giving index, graph look ok but without timestamp.
paine['bar'].plot()
Graph ok , but without x-axis timestap
After I set datetime to index, then plot is like above picture.
paine.index = pd.to_datetime(paine['Date_Time'])