Let's say we have a dataframe in this format:
id properties
0 {"cat1":["p1","p2","p4"],"cat2":["p5", "p6"]}
1 {"cat1":["p3"],"cat2":["p7"]}
How can we convert it to this format?
id p1 p2 p3 p4 p5 p6 p7
0 True True False True True True False
1 False False True False False False True
Keep in mind that the type of values in each cell is string. It has just two categories: cat1 and cat2