Question: Can you solve this through Python language please? Name Jordan Tess Age 26 23 Sex M BMI 26 22 24 Smokes? No No F Jake

Can you solve this through Python language please?

Can you solve this through Python language please? Name Jordan Tess Age

Name Jordan Tess Age 26 23 Sex M BMI 26 22 24 Smokes? No No F Jake 19 M Yes F Alice Alan Lauren 20 24 28 M F 17 35 20 No Yes No Tasks: Code cell #1: o Create a DataFrame named af Code cell #2: o Add the existing data above to df Code cell #3: o Iterate through the df rows and determine whether each participant is low, medium, or high risk use the following criteria: High Risk (anyone who meets any of these criteria): BMI 30 or higher BMI 19.99 or lower Smoke = Yes Medium Risk: BMI 25 to 29.99 Low Risk: None of the above (e.g. BMI 20-24.99) o Save the risk determination response (low, medium, high) in a list called 'risk_list Code cell #4: o Add risk list as a new column to df labeled 'Risk Code cell #5: o Print all 6 rows of df

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!