I was trying to do a scatter plot. I was trying with the next code
df = pd.DataFrame({'$a':[1,2], '$b': [10,20]})
df.columns = ['a', 'b']
df
df.plot.scatter(df['a'], df['b'])
I get the error
KeyError: '[1 2] not in index'
Any idea why this happens?