Interview practice question
A merge produced more rows than expected
Data Analyst · Python and Pandas · Beginner
After merging orders with a customer table, your DataFrame has many more rows than the orders table. Why?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Duplicate keys in customer table.
- One-to-many becomes many-to-many.
- Check key uniqueness (duplicated()).
- validate="many_to_one".
- Deduplicate before merge.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.