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 who2 data frame, create a new tibble, who3, 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
'age_group', to hold the age group as a string having possible values of 0-14,15-24,25-34,35-44,45-54,55-64, and 65+.
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 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!