I've got a dataframe with lists in two columns. It looks like this:
column1 column2 column3
0 text [cat1,cat2,cat3] [1,2,3]
1 text2 [cat2,cat3,cat1] [4,5,6]
The values in column3 belong to the categories in column2. How can I get a dataframe that looks like this?
column1 cat1 cat2 cat3
0 text 1 2 3
1 text2 6 4 5
Thank you for your help!