Can anyone help me bit here? Stuck for a while:
Its a pandas dataframe
id values
1 ['a', 'b', 'c']
2 ['a', 'c']
3 ['b', 'c']
4 ['d']
From above to below table:
id a b c d
1 1 1 1 0
2 1 0 1 0
3 0 1 1 0
4 0 0 0 1
Can anyone help me bit here? Stuck for a while:
Its a pandas dataframe
id values
1 ['a', 'b', 'c']
2 ['a', 'c']
3 ['b', 'c']
4 ['d']
From above to below table:
id a b c d
1 1 1 1 0
2 1 0 1 0
3 0 1 1 0
4 0 0 0 1