Complete the code to perform a left outer join of DataFrame df1 with df2 on the 'id' column.
result = df1.merge(df2, how=[1], on='id')
The left join keeps all rows from the left DataFrame (df1) and adds matching rows from df2.
Complete the code to perform a full outer join of DataFrame df1 with df2 on the 'key' column.
result = df1.merge(df2, how=[1], on='key')
The outer join keeps all rows from both DataFrames, filling missing matches with NaN.
Fix the error in the code to perform a right outer join on 'user_id'.
joined = df1.merge(df2, how=[1], on='user_id')
The right join keeps all rows from the right DataFrame (df2) and matches from df1.
Fill both blanks to create a left outer join on 'order_id' and include suffixes '_left' and '_right' for overlapping columns.
result = df_orders.merge(df_payments, how=[1], on=[2], suffixes=('_left', '_right'))
Use how='left' to keep all orders and on='order_id' to join on the order ID column.
Fill all three blanks to perform a full outer join on 'emp_id' with suffixes '_emp' and '_dept'.
final = employees.merge(departments, how=[1], on=[2], suffixes=[3])
Use how='outer' for full outer join, join on 'emp_id', and set suffixes to ('_emp', '_dept') to distinguish columns.