I'm trying to:
import pygal
wm = pygal.Worldmap()
but it raises:
AttributeError: module 'pygal' has no attribute 'Worldmap'
Can anyone tell me what the problem is?
You are probably looking at old documentation from what I can tell. The most recent docs state that you first need to install the map plugin with:
pip install pygal_maps_world
and then use it as:
import pygal
mm = pygal.maps.world.World()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With