Could you please help how to transpose the dataframe:
From this:
data = {'ID' : [1,1,1,2,2,2,2],
        'Name' : ['OO', 'XX', 'YY','ZZ', 'MM', 'VV', 'RR'],
         'Rank' : [5,6,7,8,9,10,11],
         'Price' : [20,30,40,50,60,70,80]}
df = pd.DataFrame(data)
   ID Name Rank Price
0   1   OO  5   20
1   1   XX  6   30
2   1   YY  7   40
3   2   ZZ  8   50
4   2   MM  9   60
5   2   VV  10  70
6   2   RR  11  80
To this
Note, I have a huge excel file for this, this is just a sample.

 
    