How does Pandas handle categorical data, and what advantages does this offer?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how pandas stores categorical data and what the category dtype offers over plain strings. Tests understanding of the internal layout, memory and speed benefits, ordered categories, and the gotchas that appear with high cardinality or mismatched category lists.