I have this dataframe with one column Strings:
Strings
["string1"]
["string2","string3"]
["string4"]
I want to use a list as new columns name in this df and the value of the row set to 1 if the column name is in the Strings column.
list_name = ['string10', 'string1', string2']
Strings string1 string2 string10
["string1"] 1 0 0
["string2","string3"] 0 1 0
["string4"] 0 0 0
How can I do this?