Why check primary key uniqueness and duplicates early, and how does it relate to the unit of observation?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: An exploratory data analysis interview question on why you should identify a table's primary key and check it for duplicates before any analysis. It tests whether you understand the unit of observation, how duplicates and join fan-out distort metrics, and how to check keys in pandas and SQL.