How to Solve NameError: name 'Geo' is not defined -- pyecharts

Solution: Import the 'Geo' module

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

from pyecharts import Geo

 

For more information:
Python pyecharts Geo