Session Ready
Exercise

Mapping the Democratic vote by county

Maps can be better communicators of geographic data than other types of plots (like the scatterplot we made in lesson 3.2).

Instructions
100 XP

The mapping functions that come handily pre-written by other developers requires that you specify variables with certain names before input. So…

  • Change the names of the county_map dataset so that county.fips becomes region and Dem.pct becomes value.
  • Feed this dataset to the county_choropleth() function.
  • Print the map.