How would you explore categorical variables, including cardinality, rare categories, and class imbalance?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to explore categorical variables during exploratory analysis, covering cardinality, rare categories and class imbalance. Tests practical pandas habits, data quality checks, and how these findings shape encoding, sampling and metric choices.