Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
163 views

Python Case Study

This document discusses analyzing census data using Python. It explores cleaning, manipulating and visualizing the census dataset to understand demographics like age, sex, income, race and working hours.

Uploaded by

Vinay Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
163 views

Python Case Study

This document discusses analyzing census data using Python. It explores cleaning, manipulating and visualizing the census dataset to understand demographics like age, sex, income, race and working hours.

Uploaded by

Vinay Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Python Case Study

Python Case Study

Consider yourself to be a data scientist working for the state government. You have to
analyze the data collected from census survey to understand the demographics

Let’s analyze some


census data

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

We will have a case study on this census dataset

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Renaming Columns

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Extracting Individual Columns

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Distribution of hours_worked
Distribution of age

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Adding race to hue parameter


Bar plot for sex vs hours_worked

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Line plot for age vs hours_worked Mapping sex to the hue parameter

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Mapping income to hue parameter

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Boxplot for income vs age

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Python Case Study

Pie chart for sex Piechart for income

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited

You might also like