split rows into columns in pandas dataframe
split rows into columns in pandas dataframe Question: I have table similar to this table: id val 0 abc_1 5 1 abc_1 3 2 abc_1 7 3 abc_2 12 4 abc_2 6 5 abc_2 9 … I want to "split" the rows into columns based on the id, so the result should be: id val1 …