Python CSV Intro Practice

1) Load the list of state populations as a file and calculate the total of all of the numbers.

Notes: Read CSV (no imports)

Hint 1: It has a header row that you will need to ignore.

Hint 2: Each row is comma separated. Use split(“,”) to get the individual values as a list.

Hint 3: Python will read the data as string, and you will need to convert values to a numeric format (float or int)

state_pop.csv (right click and save the file)

2) Use import pandas to solve the previous problem. You will end up creating a pandas dataframe object which makes it easy to sum the values.

See notes here: Read CSV using import pandas