Change the structure of variable that holds data and predictions such that these are in a pandas dataframe.