How to Solve NameError: name 'Bar' is not defined -- plotly

Solution: Import the 'Bar' module

To Solve the error, add the following line to the top of your code.

from plotly import Bar

 

For more information:
Python plotly Bar