Wrap-up video

Working with Categorical Data in Python

Kasey Jones

Research Data Scientist

Categorical columns

Our Datasets:

  • Incomes
  • Trip Reviews
  • Shelter Dogs
  • Used Cars
Working with Categorical Data in Python

Chapter 1

Topics covered:

  • Nominal vs ordinal columns
  • Creating our first categorical column
  • .value_counts(), as well as .groupby()
Working with Categorical Data in Python

Chapter 2

Methods for categorical columns:

  • Setting
  • Adding
  • Removing
  • Updating
  • Reordering
Working with Categorical Data in Python

Chapter 3

Example of a seaborn categorical plot using the hotel reviews dataset from chapter 3.

Working with Categorical Data in Python

Chapter 4

Pitfalls

Encoding examples:

  • Label encoding
  • One-hot encoding
Working with Categorical Data in Python

Great job!

Working with Categorical Data in Python

Preparing Video For Download...