October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following are the steps required to plot our map:
shpfilename = shpreader.natural_earth(resolution='110m', category='cultural', name='admin_0_countries')
reader = shpreader.Reader(shpfilename)countries = reader.records()country = next(countries)population = lambda country: country.attributes['POP_EST']sort_by_pop = sorted(countries, key=population)
# get the first 5 entries that represent ...
Read now
Unlock full access