Python
#41

Table Joins with pd.merge() and Indicator Auditing in Pandas

EasyAmazon
Interview Question #41
Asked at Amazon

Given `users_df` and `orders_df`, perform a left join on `user_id`. Use `indicator=True` to find users who have never placed an order.

Input Table: users & orders
2 rows preview
user_idnameorder_id
1Aarav901
2BhavnaNULL
Expected Output Structure1 rows
user_idname_merge
2Bhavnaleft_only
Interview Context

Asked frequently in data analyst and business analyst technical rounds. Focus on clean filtering, optimal indexing usage, and unambiguous column selection.

Python 3.10 (Pandas)
Environment Ready

Click "Run & Test" to execute your Pandas code against the test assertions.

Chat with us