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