Skip to main content

Analyzing Categorical Data from the General Social Survey in Python

The General Social Survey (GSS) is one of the most important monitors of American societial attitudes and behaviors ove the last 50 years. The data is also chock-full of categorical variables to analyze!

In this session you'll analyze a subset of the GSS, exploring American culture and honing your categorical data analysis skills.

What will I learn?

  • How to create and update the categorical data type in pandas.
  • How to manipulate and aggregate categorical data..
  • How to visualize categorical data.

Challenge & Solution Workspace

Justin Saddlemyer Headshot
Justin Saddlemyer

Workspace Architect at DataCamp

Recommended Content

Handling Machine Learning Categorical Data with Python Tutorial

Learn the common tricks to handle categorical data and preprocess it to build machine learning models!


Cleaning Data in Python

In this live training, we will work on cleaning a dataset of audiobooks from 


Superbowl Analysis in Python

Learn to do exploratory data analysis in Python on historic Super Bowl data.


Hands-on learning experience

Companies using DataCamp achieve course completion rates 6X higher than traditional online course providers

Learn More

Upskill your teams in data science and analytics

Learn More

Join 2,500+ companies and 80% of the Fortune 1000 who use DataCamp to upskill their teams.

Don’t just take our word for it.