How does pandas merge() work, including the different types of joins and how to specify keys?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how pandas merge() combines two DataFrames, how to specify join keys with on, left_on, right_on or the index, and which rows each join type keeps. It tests SQL-style join reasoning and awareness of pitfalls such as duplicate keys and overlapping column names.