Plotting A Time Series?
I'm really new to using python as a data analysis tool, and it's my first time ever dealing with time series. I have a data set which has dates in the first column, and a 'result'
Solution 1:
Please use
df.set_index('Date').plot()
or
df.plot(x='Date', y='Result')
because of the plot by default use index of df
as the x-axis, so you should set the 'Date' column as the index, or specify which column to use as the x-axis.
see more at pandas.DataFrame.plot
Post a Comment for "Plotting A Time Series?"