I want to plot some data over time.
my dataframe has one columndate with format 2015-11-25 10:00:00 (datetime64)
the other column, data, is format 1.53 (just a series of numbers float64)
Now where it gets tricky, is that the samples were taken in series. e.g. :
- 1st series from
2015-11-20 00:00:00till2015-11-21 00:00:00 - 2nd series from
2015-11-22 00:00:00till2015-11-23 00:00:00 - 3rd series from
2015-11-24 00:00:00till2015-11-25 00:00:00
All the data is one below the other, so there are no gaps in the data.
so when I execute my code:
ax = df.plot(x='Date', y='Data')
fig = ax.get_figure()
I get a graph that fills in the data on the dates that I never measured. All I want is to show is a graph with the data on the ACTUAL dates I measured. I don't understand why python extrapolates these data points. How can I turn off this feature?