I want to pivot this dataframe and convert the columns to a second level multiindex or column.
Original dataframe:
    Type        VC  C   B   Security
0   Standard    2   2   2       A
1   Standard    16  13  0       B
2   Standard    52  35  2       C
3   RI          10  10  0       A
4   RI          10  15  31      B
5   RI          10  15  31      C
Desired dataframe:
    Type            A   B  C  
0   Standard VC     2   16 52
1   Standard C      2   13 35
2   Standard B      2   0  2
3   RI       VC     10  10 10
11  RI       C      10  15 15
12  RI       B      0   31 31
 
    