I have two excel files.
Excel 1 - a.xlsx containing
SL NO Fruit Colour Quantity
1 Apple
2 Orange
3 Banana
4 Pineapple
5 pears
6 Grape
7 Mango
and Excel 2 - b.xlsx containing
SL NO Fruit Colour Quantity
1 Apple RED 2
2 Orange Orange 4
3 Pineapple Brown 6
4 Grape Purple 8
I want a new excel file which is complete like this
SL NO Fruit Colour Quantity
1 Apple RED 2
2 Orange Orange 4
3 Banana
4 Pineapple Brown 6
5 pears
6 Grape Purple 8
7 Mango
How do I perform the same? The matching should be done based on the fruit name. I am able to load it into different data frames, but how do I operate after that and create a new excel with the merged output? I am new to python and I am learning, so any help will be appreciated. Thanks in advance!