My data is a pandas dataframe called 'T':
A B C
Date
2001-11-13 30.1 2 3
2007-02-23 12.0 1 7
The result of T.index is
<class 'pandas.tseries.index.DatetimeIndex'>
[2001-11-13, 2007-02-23]
Length: 2, Freq: None, Timezone: None
So I know that the index is a time series. But when I plot it using ax.plot(T) I don't get a times series on the x axis!
I will only ever have two data points so how do I get the dates in my graph (i.e. two dates at either end of the x axis)?


plotmethod of DataFrame:T.plot()- jorisax.plot(T.index.to_pydatetime(), T)- Rutger Kassies