Exercise

Mining sites within national parks

For this exercise, let's start with one of the national parks, the Kahuzi-Biega National park (which was extracted from the national_parks dataset and is provided as the kahuzi variable).

Which of the mining sites are located within this national park?

And as a second step: can we determine all mining sites that are located within one of the national parks and in which park?

The mining sites (mining_sites) and national parks (national_parks) datasets are already loaded, and GeoPandas is already imported.

Instructions

100 XP
  • Use the within() method to subset the mining sites (mining_sites) located in the kahuzi national park. Call the result sites_kahuzi.
  • Determine for each of the mining sites if and in which national park it is located. This will create a GeoDataFrame similar to mining_sites but with an additional column with national park name. Call this result sites_within_park.
  • Count the number of sites in each park by using the value_counts() method on the 'Name' column of sites_within_park.