Question: 1 There are two functions that need to be completed: normalization(fname, attr, normType) This function takes in the location of the data file, the attribute

1 There are two functions that need to be completed: normalization(fname, attr, normType) This function takes in the location of the data file, the attribute that has to be normalised (one of the values from 'Open','High','Low','Close','Volume', given as column indices) and the type of normalization to be performed ('min_max' or 'z_score') Based on the normalisation type that is mentioned, you will have to apply the appropriate formula and return a dictionary where key = original value in the dataset, value = normalised value A sample dataset has been provided to you at this location "./data/HistoricalQuotes.csv". Use this dataset to test the functionality you are building. correlation (fname1, attr1, fname2, attr2) This function takes in the location of the first data file, the attribute that has to be used in the first file, the location of the second data file and the attribute that has to be used in the second file. This function has to calculate the correlation coefficient between the two attributes mentioned in the two files. Two Sample datasets have been provided to you in "./data/test1.csv" and "./data/test2.csv" respectively. The two sample files have the following attributes 'Open','High','Last','Low','Volume'. Use these two sample files to test the functionality you are building

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock