Answered step by step
Verified Expert Solution
Link Copied!

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?

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

What relevance do political costs have to accounting changes?

Answered: 1 week ago

Question

6. What is process reengineering? Why is it relevant to training?

Answered: 1 week ago