I have many stock data but in a strange way which I couldn't find an example how to convert them to the output which could helpful. Here is a snippet of data
stockname,value,prediction
Yahoo,32,12
Yahoo,21,12
Yahoo,30,10
Yahoo,56,19
Google,32,10
Google,22,30
Is it possible to convert this dataframe to something easier like
stockname value1 value2 value3 value4 prediction1 prediction2 prediction3 prediction4
Yahoo 32 21 30 56 12 12 10 19
Google 32 22 10 10