What I'm currently trying to do is spread all the columns onto multiple columns, for example this dataframe
Person_ID Car_ID Car_Type Car_Speed
a 1 x 50
a 2 y 70
a 3 z 100
b 4 y 70
I want to turn it to this
Person_ID Car_ID1 Car_Type1 Car_Speed1 Car_ID2 Car_Type2 Car_Speed2 Car_ID3 Car_Type3 Car_Speed3
a 1 x 50 2 y 70 3 z 100
b 4 y 70
Can someone help? Thank you.