In the preceding recipe, we used shapereader to download the file, and Reader to read the contents of shapefiles and plot them. Both shapereader and Reader are provided by cartopy. In this recipe, we will continue to use shapereader to download the required shapefile, but use GeoPandas to read and plot the contents of the shapefile. We used GeoPandas earlier in Chapter 6, Plotting with Advanced Features to plot maps in that part of the book.
We will plot the same three country maps used in the preceding recipe. However, we will use two different types of files, admin 0 and admin 1, and plot three countries for each type, giving us a total of six plots.