this is the Dataframe
Year    Category    Performance
2014    Sales           1000
2014    Expenses        400
2014    Profit          200
2015    Sales           1170
2015    Expenses        460
2015    Profit          250
2016    Sales           660
2016    Expenses        1120
2016    Profit          300
And this is the expected output
 [          
          ['Year', 'Sales', 'Expenses', 'Profit'],          
          ['2014', 1000, 400, 200],         
          ['2015', 1170, 460, 250],         
          ['2016', 660, 1120, 300],                     
        ]           
or if you could help me to convert this dataframe into this
Year Sales Expenses Profit      
2014 1000  400       200        
2015 1170  460       250        
2016 660   1120      300
 
    