← All Python interview questions

De-duplicate a signup table in pandas

MediumPandas — CleaningZohoFreshworks

A signup export has duplicate emails (the same person submitted the form twice) and a few rows with a missing name.

Write a function clean_signups(df) that returns a cleaned DataFrame: drop rows where name is null, then keep only the first row for each email. Reset the index so it runs 0..n-1.

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