al dz --snip-error yemenrep zm zw the errors come from two sources firstnot all the classifications in the data set are by countrysome population statistics are for regions (arab worldand economic groups (all income levelssecondsome of the statistics use different system for full names of countries (yemenrep instead of yemenfor nowwe'll omit country data that cause errors and see what our map looks like for the data that we recovered successfully building world map with the country codes we haveit' quick and simple to make world map pygal includes worldmap chart type to help map global data sets as an example of how to use worldmapwe'll create simple map that highlights north americacentral americaand south americaamericas py import pygal wm pygal worldmap(wm title 'northcentraland south americav wm add('north america'['ca''mx''us']wm add('central america'['bz''cr''gt''hn''ni''pa''sv']wm add('south america'['ar''bo''br''cl''co''ec''gf''gy''pe''py''sr''uy''ve'] wm render_to_file('americas svg'at we make an instance of the worldmap class and set the map' title attribute at we use the add(methodwhich takes in label and list of country codes for the countries we want to focus on each call to add(sets up new color for the set of countries and adds that color to key on the left of the graph with the label specified here we want the entire region of north america represented in one colorso we place 'ca''mx'and 'usin the list we pass to the first add(call to highlight canadamexicoand the united states together we then do the same for the countries in central america and south america the method render_to_file(at creates an svg file containing the chartwhich you can open in your browser the output is map highlighting northcentraland south america in different colorsas shown in figure - downloading data