In this recipe, we will learn how to extract population data for each of the countries, sort it by population amounts, and plot the top five and bottom five countries, in terms of population, on the global map. We will download and use the admin 0 shapefile with a resolution of 110m.
Plotting the top five and bottom five populated countries
Getting ready
You'll need to import the required libraries using the following commands:
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.io.shapereader as shpreader
How to do it...
The following are the...