Let's say I have two lists per account id (table below). I want to remove any elements that appear in list 1 (competitor_old) that also appear in list 2 (competitor_new). Essential L2 - L1
per row.
So from the table below I would have a new column (competitor_new_unique) and for the first row the a value would be c,d
table
account_id competitor_old competitor_new
234241 a,b a,b,c,d
53266 h h,s
342536 j j
325632 s s,g,e
324346 f f
desired result
account_id competitor_old competitor_new competitor_new_unique
234241 a,b a,b,c,d c,d
53266 h h,s s
342536 j j
325632 s s,g,e g,e
324346 f f
Most of my efforts can be derived from another post. Remove all the elements that occur in one list from another
Thanks for any input.