So i have a dataframe like:
and i want an output like:
The rows in df1 are nothing but combinations of the column names, wherever the combination name matches with the column names, that cell will be made as 1 and rest 0
Any idea how to achieve this?
I a trying to loop through each row and do a string contains condition but kind of stuck.

