Hello (Pandas Python) to make it short, I have a data frame composed of a user id column (user_id), its organization attached to it in the second column, and its organization merged in the third column, obviously in the third column all have no orgnization merged and therefore have Na it may also be that the same base_org is repeated but that this one has no merge and this is desired, the data frame looks like this:
| User_id | Base_org | Merge_org |
|---|---|---|
| A | Apple | Na |
| B | ||
| C | Xbox | Microsoft |
| D | Na | |
| E | Na |
I would like users who have Na to keep their base_org but those who have merged companies to take the place of their base_org like this:
| User_id | Base_org | Merge_org |
|---|---|---|
| A | Apple | Na |
| B | ||
| C | Microsoft | Microsoft |
| D | Na | |
| E | Na |
How can I proceed ?