I have a data-frame like below and I want to group data based on second column. The table is unique on ColumnA.
Condition:
If a value in columnA appears in any row in columnB, add that value to the value from columnA corresponding to the value in columnB.
Input:
ColumnA | ColumnB | Values |
---|---|---|
AB12 | CD34 | 30 |
CD34 | NULL | 40 |
Output:
ColumnA | Values |
---|---|
AB12 | 70 |