Now You Code 4: Mapping US Population Change

Your objective is to produce a map of population change from 2010 to 2016 as a choropleth which includes a pin to display the change.

Recommended procedure:

  1. Load the following US Population data into a Pandas DataFrame https://raw.githubusercontent.com/mafudge/datasets/master/usa/us-pop-estimates-2010-2016.csv
  2. Load the following Geographic Center data into a Pandas DataFrame https://raw.githubusercontent.com/mafudge/datasets/master/usa/geographic-centers.csv
  3. merge() the two datasets with an inner join on the Code column.
  4. Calculate the percentage change in population from 2010 to 2016. The formula should be 100 * (2016pop - 2010pop) / 2010pop
  5. Create a choropleth of population change by state. Use a fill_color='YlOrRd'.
  6. Add push pins to the map in the geographic center of each state, and include a data label of the percentage population change.

Step 1: Problem Analysis

Inputs:

Outputs:

Algorithm (Steps in Program):


In [ ]:
# Step 2: Write your code here

Step 3: Reflection

Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?

To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.

Keep your response to between 100 and 250 words.

--== Write Your Reflection Below Here ==--


In [ ]: