Tuberculosis rates by state in the USA

Question P9.3.1

Use pandas to read in the file, tb-cases.txt, which provides numbers of cases of tuberculosis in the USA, broken down by state for the years 1993–2018. Create a DataFrame with a hierarchical index (MultiIndex) consisting of the state name and year.

Plot these data appropriately and determine the state with the greatest relative decrease in tuberculosis over the time period considered.


Solution

To access solutions, please obtain an access code from Cambridge University Press at the Lecturer Resources page for my book (registration required) and then sign up to scipython.com providing this code.