Question: Write Code in Python, Starting from your who 2 data frame, create a new tibble, who 3 , for which each 'key' value is split
Write Code in Python, Starting from your who data frame, create a new tibble, who for which each 'key' value is split into three new variables:
'type', to hold the TB type, having possible values of rel, ep sn and sp;
'gender', to hold the gender as a string having possible values of female and male; and
'agegroup', to hold the age group as a string having possible values of and
The input data file is large enough that your solution might take a minute to run. But if it appears to be taking much more than that, you may want to revisit your approach.
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
