I am working on a data frame that has a column with the following:
Products
1 A;B
2 A
3 D;A;C
I would like to have instead:
Has_A Has_B Has_C ...
1 1 1 0
2 1 0 0
Also, as a step further, there are some rows that contains something like "No products" or "None" and there is NaNs, I would like to put all these into 1 column (if possible ).
Any tips ? Is it possible to do ?
Thank you