human
How do I join two dataframes based on values in selected columns?
assistant
Here is some code to join two dataframes based on values in selected columns

pd.merge(a, b, on=['A', 'B'], how='outer')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.