I have two dataframe, "big" and "correction":
big:
>>>ID class fruit
0 1 medium banana
1 2 medium banana
2 3 high peach
3 4 low nuts
4 5 low banana
and correction:
>>> ID class time fruit
0 2 medium 17 melon
1 5 high 19 oranges
I want to fix the table "big" according to information in table correction. in order to get the following table:
>>>ID class fruit
0 1 medium banana
1 2 medium **melon**
2 3 high peach
3 4 low nuts
4 5 **high** **oranges**
as you can see, the starred values "fixed" according to the correction tabl, on the ID field.
I thought to use for nested loop but I believe there are better ways to get the same results.