I have 2 pandas DataFrames that I am manipulating in Python, and I would like to combine them based on a certain column (col_1):
#df1
col_1 col_2
0 3 7
1 4 8
2 5 5
#df2
col_1 col_3
0 4 78
1 5 89
and the output should look like this:
col_1 col_2 col_3
0 3 7 0
1 4 8 78
2 5 5 89
I'm not sure about how to go about this using 'best practices'.
Thank you.