我有一個數據集,看起來像一個數據幀的列:如何挑選到拆散的
UniqueID CategoryType Value
A Cat1 apple
A Cat2 banana
B Cat1 orange
C Cat2 news
D Cat1 orange
D Cat2 blue
我想它看起來像:
UniqueID Cat1 Cat2
A apple banana
B orange
C news
D orange blue
我已經嘗試使用取消,但不能得到正確的索引集或東西。
感謝
外我猜想,這個表現會更好ll數據集〜 – Wen
@Wen,好像是一樣的:) – Vaishali