I am looking to remove duplicate rows based on the values in a column ("Name"), but append the corresponding string values in another column("Occupation").
Duplicate entry is "Jack"
I have a dataframe:
| Name | center | Occupation |
|---|---|---|
| Jack | Miami | Clerk |
| Alice | Tx | Manager |
| Jack | San Jose | PO |
| Cathy | Houston | Security |
And i am expecting this
| Name | center | Occupation |
|---|---|---|
| Jack | Miami | Clerk PO |
| Alice | Tx | Manager |
| Cathy | Houston | Security |
Appreciate any answer on this