Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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?
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started