CPSC150A
Scientific Computing

Activity 15

Project Normalization

Normalization

Create a Python program that defines the function print_normalized(colum_index: int) -> None that prints the values of a dataset’s column normalized. Normalized data is scaled to the range 0 to 1 while maintaining the relative distances between numbers.

In order to normalize all of the data in the column, the function will need to compute the minimum and maximum values of the column. Before writing the print_normalize function, create the functions maximum(column_index: int) -> float and minimum(column_index: int) -> float that return the minimum and maximum values in the specified column. Use these functions to make writing the print_normalized function easier.

Be sure to test your functions on a smaller test dataset to make sure it works before running it on your actual dataset.