标签: python pandas dataframe
假设我们有
color 1 red 2 green 3 blue 4 red
列"color" = {"red","green","blue"}
"color" = {"red","green","blue"}
我们需要获得以下输出
red green blue 1 1 0 0 2 0 1 0 3 0 0 1 4 1 0 0