I have a DataFrame df as below
Date Confirmed Deaths Recovered
0 2020-01-30 1 0 0
1 2020-01-31 0 0 0
2 2020-02-01 0 0 0
3 2020-02-02 1 0 0
4 2020-02-03 1 0 0
While Trying to plot Date VS Confirmed
df.plot(kind ='line',x='Date',y='Confirmed')
I get the following error
ValueError: x must be a label or position
The Datatype of the columns are
Date object
Confirmed int64
Deaths int64
Recovered int64
dtype: object