Skip to content

Descriptive statistics project of adult demographics with Pandas, using UC Irvine data set | Priscilla Arinze

Notifications You must be signed in to change notification settings

priscilla-arinze/Project---Demographic-Data-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demographic Data Analyzer

In this challenge you must analyze demographic data using Pandas. You are given a dataset of demographic data that was extracted from the 1994 Census database. Here is a sample of what the data looks like:

age workclass fnlwgt education education-num marital-status occupation relationship race sex capital-gain capital-loss hours-per-week native-country salary
0 39 State-gov 77516 Bachelors 13 Never-married Adm-clerical Not-in-family White Male 2174 0 40 United-States <=50K
1 50 Self-emp-not-inc 83311 Bachelors 13 Married-civ-spouse Exec-managerial Husband White Male 0 0 13 United-States <=50K
2 38 Private 215646 HS-grad 9 Divorced Handlers-cleaners Not-in-family White Male 0 0 40 United-States <=50K
3 53 Private 234721 11th 7 Married-civ-spouse Handlers-cleaners Husband Black Male 0 0 40 United-States <=50K
4 28 Private 338409 Bachelors 13 Married-civ-spouse Prof-specialty Wife Black Female 0 0 40 Cuba <=50K

Data Source: Dua, D. and Graff, C. (2019). UCI Machine Learning Repository Irvine, CA: University of California, School of Information and Computer Science.

You must use Pandas to answer the following questions:

  1. How many people of each race are represented in this dataset?
  2. What is the average age of men?
  3. What is the percentage of people who have a Bachelor's degree?
  4. What percentage of people with advanced education (Bachelors, Masters, or Doctorate) make more than 50K?
  5. What percentage of people without advanced education make more than 50K?
  6. What is the minimum number of hours a person works per week?
  7. What percentage of the people who work the minimum number of hours per week have a salary of more than 50K?
  8. What country has the highest percentage of people that earn >50K and what is that percentage?
  9. Identify the most popular occupation for those who earn >50K in India.

About

Descriptive statistics project of adult demographics with Pandas, using UC Irvine data set | Priscilla Arinze

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published