I have a dataframe df:
id name count
1 a 10
2 b 20
3 c 30
4 d 40
5 e 50
Here I have another dataframe df2:
id1 price rating
1 100 1.0
2 200 2.0
3 300 3.0
5 500 5.0
I want to join these two dataframes on column id and id1(both refer same). Here is an example of df3:
id name count price rating
1 a 10 100 1.0
2 b 20 200 2.0
3 c 30 300 3.0
4 d 40 Nan Nan
5 e 50 500 5.0
Should I use df.merge or pd.concat?