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 :
You are provided with a patient data information Patientdata.csv
Read this table into Ptdata dataframe. Use for loop and if else to perform the following investigations.
a Write a for loop to print the cancer types of first patients in the dataframe
b Which patients PatientIDs are older than and have smoking status as TRUE?
c What is the marker associated with patients who have age less than or equal to
d Which patients are Hispanic and have received Stem Cell Transplantation?
e Which patients are older than and have cancer type "Prostate"?
f Create a new column "agegroup" based on age categories: "Young" age "Middleaged"
age "Elderly" age Use a for loop with if else control statements
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
