Complete the code to perform an outer join of df1 and df2 on the 'key' column.
result = df1.merge(df2, on='key', how=[1])
Using how='outer' returns all rows from both DataFrames, matching where possible.
Complete the code to merge df1 and df2 on columns 'key1' and 'key2' with an outer join.
result = df1.merge(df2, on=[1], how='outer')
The on parameter expects a list of column names for multiple keys.
Fix the error in the code to perform an outer join on 'id' column.
result = df1.merge(df2, on=[1], how='outer')
The on parameter requires the column name as a string, so it must be quoted.
Fill both blanks to create an outer join and fill missing values with 0.
result = df1.merge(df2, on='key', how=[1]).fillna([2])
Use how='outer' for full join and fillna({0}) to replace missing values with zero.
Fill all three blanks to perform an outer join on 'key', suffix overlapping columns with '_left' and '_right'.
result = df1.merge(df2, on=[1], how=[2], suffixes=([3], '_right'))
Use on='key', how='outer', and suffixes=('_left', '_right') to handle overlapping columns.