Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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