Complete the code to perform an inner join of df1 and df2 on the 'key' column.
result = df1.merge(df2, on=[1])The on parameter specifies the column to join on. Here, 'key' is the correct column common to both dataframes.
Complete the code to specify the type of join as inner explicitly.
result = df1.merge(df2, on='key', how=[1])
The how parameter defines the type of join. 'inner' returns only matching rows.
Fix the error in the code to join df1 and df2 on 'key' with inner join.
result = df1.merge(df2, on=[1], how='inner')
The join column must exist in both dataframes. 'key' is the correct column here.
Fill both blanks to join df1 and df2 on 'key' and keep only matching rows.
result = df1.merge(df2, on=[1], how=[2])
Use 'key' for the join column and 'inner' to keep only rows with matching keys.
Fill all three blanks to join df1 and df2 on 'key', keep matching rows, and suffix overlapping columns with '_left' and '_right'.
result = df1.merge(df2, on=[1], how=[2], suffixes=([3]))
Use 'key' to join, 'inner' to keep matching rows, and suffixes ('_left', '_right') to distinguish overlapping columns.