I have 2 dataframes df1 and df2
df1
Col1 Col2 Col3 Col4
df2
Key_col Col5 Col6 Col7
So i need only the Key_col from second dataframe when I combine the two dataframes.
pd.merge(f1, df2, how='outer')
This gives all columns from both dataframes
Expected output
Col1 Col2 Col3 Col4 Key_col