When I am using the dictionary provided with keys= [‘one’, ‘two’], i am getting a keyerror: ‘colname1’. This is because it extracts data based on the key of the dictionary and since it is not able to find one, it raised that error. When i changed the dictionary keys to: ‘colname1’, ‘colname2’ then only the graph was plotted without any errors. This is the code option I am talking about…
df.plot(x=‘colname1’, y=‘colname2’, style=‘o’)
But, it says that both the options are correct.