使用 get_dummies df.set_index([1,2])[0].str.get_dummies(',').reset_index() Out[229]: 1 2 a b c 0 2 3 1 0 0 1 5 6 1 1 0 2 8 9 0 0 1 ...
確定! 回上一頁