I have a dataframe df1 :-
| Store_id | fruit | region |
|---|---|---|
| 1 | orange | x |
| 2 | apple | y |
| 3 | NotKnown | z |
| 5 | Notknown | q |
| 6 | banana | w |
I have a dataframe df2 :-
| Store_id | fruit | region |
|---|---|---|
| 1 | orange | x |
| 2 | apple | y |
| 3 | pears | z |
| 5 | strawberry | q |
| 6 | banana | w |
| 8 | mango | i |
Expected df1 :-
| Store_id | fruit | region |
|---|---|---|
| 1 | orange | x |
| 2 | apple | y |
| 3 | pears | z |
| 5 | strawberry | q |
| 6 | banana | w |
Store_id is the primary key.
How do I update column fruit of df1 based on df2 column fruit for value NotKnown under fruit column of df1