Question: Prepare a Python program to do the following tasks. Please no ce that the program must be runnable in Google s Colab. ( Only submit
Prepare a Python program to do the following tasks. Please noce that the program must be runnable in
Googles Colab. Only submit a single file as the assignment with the format of ipynb
Read data from the file pimaindiansdiabetes.data.csv given in the AL
Print the features of the first samples.
Calculate and print the correlaon between the features columns
Rescale all features into the range of and print the scaled value of the features of the first
samples.
Calculate and print the correlaon of the features for the rescaled data.
Have the correlaons changed? Please answer this queson in a Text box inside your program.
Group data by class
Calculate the correlaon of the features columns over samples in class
Are the correlaons equal to that of the whole data item abovePlease answer this queson in
a Text box inside your program.Hint: You may see NaN for some of the results. Do not worry. This is
because the value of one of the features for all of the samples are equal; in this case
Calculate the correlaon of the features columns over samples in class
Are the correlaons between features in class and class the same? Please answer this queson
in a Text box inside your program.Prepare a Python program to do the following tasks. Please noce that the program must be runnable in
Googles Colab. Only submit a single file as the assignment with the format of ipynb
Read data from the file pimaindiansdiabetes.data.csv given in the AL
Print the features of the first samples.
Calculate and print the correlaon between the features columns
Rescale all features into the range of and print the scaled value of the features of the first
samples.
Calculate and print the correlaon of the features for the rescaled data.
Have the correlaons changed? Please answer this queson in a Text box inside your program.
Group data by class
Calculate the correlaon of the features columns over samples in class
Are the correlaons equal to that of the whole data item abovePlease answer this queson in
a Text box inside your program.Hint: You may see NaN for some of the results. Do not worry. This is
because the value of one of the features for all of the samples are equal; in this case
Calculate the correlaon of the features columns over samples in class
Are the correlaons between features in class and class the same? Please answer this queson
in a Text box inside your program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
