← All Python interview questions

De-duplicate CRM leads and keep the latest touch

MediumPandas — CleaningSalesforceFreshworks

The CRM exported the same lead several times because the email casing differs and every touchpoint was logged.

Write dedupe_leads(df) that lower-cases and strips email, keeps only the most recent row per email by touched_at, and returns the result sorted by email with a reset index.

Practising alone only goes so far — our live cohorts pair Python and Pandas depth with dashboards, agentic analytics projects and mock interviews.

Explore the program