I have two large data frames which I need to merge row-wise. These two dataframes may have a few overlapping rows.
Example:
data1
key name patent
11 Alphagrep 112344
12 Citrix 112345
data2
Sr name patents
11 Alphagrep 112344
13 Taj 112322
I want to merge these dataframes row wise on [Key,Sr] & [patent, patents]
Which is: If row-data1[key]==row-data2[Sr] & row-data1[patent]==row-data2[patents], Merge or else append.
Result should be:
data1 + data2
key name patent
11 Alphagrep 112344
12 Citrix 112345
13 Taj 112322
How should one do this in pandas?