Session Ready
Exercise

Bivariate Map of Broadband Access

Sometimes we want to map two variables at once, a so-called bivariate map. One way to do this is by combining a choropleth map and a proportional symbol map. You will use the geo_state GeoDataFrame again to create a choropleth of the percentage of internet households with broadband access, and overaly a proportional symbol map of the count of households with internet access.

You will set an alpha transparency on the proportional symbol marker so as to not completely obscure the underlying choropleth.

geopandas is imported using the usual alias, and the sqrt function has been imported from numpy.

The geo_state GeoDataFrame has been loaded.

Instructions
100 XP
  • Use the broadband and internet columns to calculate the percentage of internet households with broadband
  • Create a choropleth basemap of the new pct_broadband column using a yellow-green-blue colormap
  • Set the markersize of the centroid points to the square root of the number of households with internet access divided by 5; make the markers partially transparent by setting the alpha parameter to 0.7