✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Plotly question

I have a very simple dataframe called fuel:

Month Amount
Jan $100.25
Feb $87.75
Mar $22.86
Apr $30.22
May $66.64
Jun $80.07
Jul $106.97
Aug $28.70
Sep $102.08
Oct $22.47
Nov $72.19
Dec $23.43
Total $743.63
Average $61.97

I ran the code:
pd.options.plotting.backend=‘plotly’
fuel_fig = fuel.plot(kind=‘bar’)
fuel_fig.update_layout(barmode=‘group’)
fuel_fig.show()

I got the output

I also tried:

fuel_fig = px.bar(fuel, x=‘Month’, y=‘Amount’)
fuel_fig.show()

And got the error:
ValueError: Value of ‘x’ is not the name of a column in ‘data_frame’. Expected one of [‘Amount’] but received: Month

I am unable to get a bar chart that shows how much was spent each month. Could someone help me please?