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 52 8 43 7 3 4 6 2
dataframe 2
ID col3 col4 ...3 11 154 12 167 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 col41 9 5 - -2 8 4 - -
Thanks!