Session Ready
Exercise

Building a polished Geopandas choropleth

After merging the counts_df with permits_by_district, you will create a column with normalized permit_density by dividing the count of permits in each council district by the area of that council district. Then you will plot your final geopandas choropleth of the building projects in each council district.

Instructions
100 XP
  • Merge permits_by_district and counts_df on district to create districts_and_permits.
  • Using apply() and a lambda expression, calculate a new column in districts_and_permits called permit_density. Divide counts by areas.
  • Plot a choropleth of the districts_and_permits, using permit_density with the OrRd colormap, and black outlines.
  • Add axis labels (longitude and latitude) and the title provided. Show your plot.