I have two different Pandas data-frames that have one column in common. I have seen similar questions on Stack overflow but none that seem to end up with the columns from both dataframes so please read below before marking as duplicate.
Example:
dataframe 1
ID col1 col2 ...
1 9 5
2 8 4
3 7 3
4 6 2
dataframe 2
ID col3 col4 ...
3 11 15
4 12 16
7 13 17
What I want to achieve is a dataframe with columns from both dataframes but without the ID's found in dataframe2. i.e:
desired result:
ID col1 col2 col3 col4
1 9 5 - -
2 8 4 - -
Thanks!