How do you remove duplicates in pandas and keep the latest record per entity?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain how to deduplicate a pandas DataFrame so that only the most recent row per entity remains. It tests your knowledge of sort order, the subset and keep arguments of drop_duplicates, groupby alternatives, and how tied or missing timestamps change the result.