I have a dataframe:
student_id class score
1 A 6
1 B 7
1 C 8
I would like to divide the class
score into 3 columns so the above dataframe should become:
student_id class_A_score class_B_score class_C_score
1 6 7 8
The idea is to convert A B C
into 3 columns.