Question: Question 4 : You are provided with a patient data information Patient _ data.csv Read this table into Pt . data dataframe. Use for loop

Question 4:
You are provided with a patient data information Patient_data.csv
Read this table into Pt.data dataframe. Use for loop and if else to perform the following investigations.
a. Write a for loop to print the cancer types of first 10 patients in the dataframe
b. Which patients (Patient_IDs) are older than 50 and have smoking status as TRUE?
c. What is the marker associated with patients who have age less than or equal to 30?
d. Which patients are Hispanic and have received Stem Cell Transplantation?
e. Which patients are older than 60 and have cancer type "Prostate"?
f. Create a new column "age_group" based on age categories: "Young" (age =30), "Middle-aged" (30
age =60), "Elderly" (age >60). Use a for loop with if else control statements
 Question 4: You are provided with a patient data information Patient_data.csv

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!