I have two csv file say one.csv and two.csv. Format of file is One.csv:
ID1 , att 1 , att 2
a1 b1 c1
a2 b2 c2
a3 b3 c3
for two.csv
ID2, att1, att2
E1 b6 c9
E2 b2 c2
E3 b1 c1
E4 b1 c3
I need create a new csv file three .csv where only the entries with same att1 and att2 value should be present
ID1 , ID2, att1 , att2
a1 E3 b1 c1
a2 E2 b2 c2
How can i achieve this in python using panda? I've gone through Merge two DataFrames based on multiple keys in pandas. But in my case the length of both the data frames is different.