merge df datacamp code example Example: merge df datacamp df_inner = pd.merge(df1, df2, on='id', how='inner') df_inner