Answered step by step
Verified Expert Solution
Question
1 Approved Answer
create a pie chart using python, where it just shows the percentage of each Race based on the total count of how many people were
create a pie chart using python, where it just shows the percentage of each Race based on the total count of how many people were asked the question (total number of rows in your dataset). You can then try to repeat the process with the Age variable. below is the data set(1st table for reference there are 156 rows in the table but couldnt attach full). Race variable in your datasets is the code of the race category, and it has a corresponding text label (e.g., 1 = American Indian) please refer the below table for this(2nd table)
Age | Race |
17 | 3 |
18 | 6 |
18 | 10 |
18 | 5 |
18 | 5 |
18 | 3 |
18 | 3 |
18 | 10 |
18 | 8 |
19 | 10 |
19 | 5 |
19 | 8 |
19 | 3 |
19 | 8 |
19 | 2 |
19 | 10 |
19 | 10 |
19 | 3 |
19 | 4 |
Race | Code | |
American Indian | 1 | |
African American | 2 | |
Mexican American | 3 | |
Other Hispanic | 4 | |
Asian | 5 | |
SE Asian | 6 | |
Pacific Islander | 7 | |
Filipino | 8 | |
Multiple Ethnicities | 9 | |
White | 10 | |
Other/Not Stated | 11 | |
International | 12 |
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