Explain categorical data in Pandas.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks you to explain the pandas category dtype: how values are stored, how ordered and unordered categories differ, and how to create and inspect them. Tests whether you know when the dtype saves memory and time and which pitfalls show up in grouping, assignment and concatenation.