Python code
data.csv
 
   color_green  color_red  color
0            0          0   blue
1            0          1    red
2            1          0  green