What is the category data type in pandas, and why use it?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what the pandas category data type is and when to use it. Tests understanding of how categorical columns store codes and categories, the memory and speed benefits, ordered categories, and the pitfalls with new values, concatenation and grouping.