I have a dataframe of the form-
Id Nums
1 0,1,0,0
2 0,0,0,1
I wish to split the column Nums
in the form a feature vector for any Id --
Id Num1 Num2 Num3 Num4
1 0 1 0 0
2 0 0 0 1
How can something of this sort can be done?