Question: 4 A-4. [5 marks]: Create a new column called Height_Class that is based on height (height_m) ranges with different ranges for Male and Female as

4 A-4. [5 marks]: Create a new column called Height_Class that is based on height (height_m) ranges with different ranges for Male and Female as given in the table below. Range for Males Height in meters Range for Females Height in meters Height < 1.6 Height < 1.55 1.6 Height< to 1.75 1.75 Height 1.55 Height 1.7 1.7 Height Height_Class Short Normal Tall Display the first 10 random rows of the DataFrame. A-5. [5 marks]: Identify the pair-wise correlation between all the numerical variables using a heatmap plot. Set the title of the plot as "Correlation between Attributes". The plot should display correlation value in each cell of the plot using the annotation option of the heatmap. Set the format of the numbers to display one decimal place so numbers can be viewed clearly. From the results, identify and print which variables have a very strong positive or negative correlation to BMI

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

Students Have Also Explored These Related Databases Questions!