assignment9

This package consists of six Python modules:

  1. assignment9.py which is the main program. When called by user, it will create user interaction and run the whole program.

  2. Region_class.py which plots the histogram and box for a fixed year for income per person group by region. When create a region_income object, it will automatically do the plot.

  3. excep_class.py which handles possible exceptions during the whole project.

  4. test.py run unittest about the user input.

  5. load_data.py loads the two datasets and prepare the dataframe and plot hist for the following function

  6. year_class.py is the class about the input from user. create a year object from input of user