What is the category data type, why use it, and how does it relate to one-hot encoding?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what the pandas category dtype is, why you would use it, and how it relates to one-hot encoding. Tests understanding of integer codes and stored categories, memory and speed trade-offs, ordered categories, and keeping encodings consistent for models.