Collapsing categories knowledge check
You are working with a categorical column that has ten different responses. You want to collapse this into a new categorical column that only has three categories, instead of ten. What is the easiest method to use for this update?
This exercise is part of the course
Working with Categorical Data in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
