When would you use the category dtype and how does it save memory or speed up operations?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain when the pandas category dtype is worth using and how it changes memory use and performance. Tests knowledge of how categoricals are stored, which operations get faster, ordered categories, and the pitfalls around new values, concatenation and grouping.