Making Categories Match: replace and map

value_counts shows every spelling a column holds, replace with a dictionary fixes the few misspellings you name and leaves every other value alone, map turns every spelling into one standard value and leaves missing whatever it doesn't know, which you count before moving on, and the category type stores a column with a fixed list of values.

By

Updated

Cheat sheet: Making Categories Match: replace and map
Category
Data Analysis
Level
Apprentice
Tags
category dtype, python, Series.map(), Series.replace()