Week 12- Stacked area plot AttributeError: 'DataFrame' object has no attributed 'Confirmed'

Hi,

I am getting error, even though i wrote code corretly. any other reason ?, how to solve it. Thanks.


Error indicates, ‘df_’ doesn’t have any column with name ‘Confirmed’.

You can verify by printing ‘df_.columns’ and see if it contains ‘Confirmed’ or not

Actually , i found my mistake.

image

I used list for writing values, index, columns.
thanks for highlighting the point to me.

1 Like