new to python and still learning. Have tried many posts already but none are working. Might need help with the syntax etc. 2 parts to my question:
First part - I want to split column 'resources' by every unique value and make new columns from them. Similar to the picture below with the columns highlighted yellow enter image description here
CustID, Resources, 100, 200, 30, 50
222, 100;200;30;50, 1 , 1, 1, ,1
The second way - i want to split 'resources' by every unique value into one column. This might lead to duplication of rows which is fine... Similar to the below picture enter image description here
CustID, Resources, New Column
222, 100;200;30;50, 100
222, 100;200;30;50, 200
222, 100;200;30;50, 30
222, 100;200;30;50, 50