Is there a fast way to split a column into many columns based on the values?
For example the column x has the values (a, b, c, d). Now I want to split the column x into 4 columns (a,b,c,d) with the value 0 or 1. Like in the following example:
x | a b c d
a | 1 0 0 0
c | 0 0 1 0
b | 0 1 0 0
b | 0 1 0 0
d | 0 0 0 1