I have a table that looks like this: TABLE
LOCATION ANALYSIS TYPE
A A,B,C,D
A D,E,F
B KA
B A,B,C
B C,D,E
I wish to generate a single line inventory for each location that lists the Analysis types available using pandas
. So, for this column of lists I want to merge and display a single list of unique values by location.
IE:
A A,B,C,D,E,F
B A,B,C,D,E,KA
Sorry, no code. I have tried various splits in pandas, not getting close.