How to Solve NameError: name 'Basemap' is not defined -- mpl_toolkits

Solution: Import the 'Basemap' module

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

from mpl_toolkits.basemap import Basemap

 

For more information:
Python mpl_toolkits Basemap