Download (right-click, save target as ...) this page as a jupyterlab notebook from: Lab11


Laboratory 11: Dataframes (Continued)

LAST NAME, FIRST NAME

R00000000

ENGR 1330 Laboratory 11 - In-Lab

Preamble script block to identify host, user, and kernel


Exercise 1: Population Lines

Use pandas to read a dataframe from the file http://54.243.252.9/engr-1330-webroot/4-Databases/census_18.csv.
Then produce a line plot of the counts by age for the 2010 census, x-axis will be the series age, y-axis will be the census values for 2010.


Exercise 2:

Using your dataframe from above, plot both the 2010 and 2014 census values by age. Plot the 2010 distribution in blue and the 2014 distribution in red.

Exercise 3.

  1. What is population for age = 9 for the 2010 census?
  2. What is population for age = 9 for the 2014 census?
  3. Is the portion of population over 9 years old increasing? decreasing? staying the same?