pandas: how to change the specific column as index and change index into various columns
For me, when it comes to reshaping a dataframe(switching columns/indices/rows and such) its fairly intuitive using the pivot_table function. 

my_df.pivot_table(index='time', columns=my_df.index, values='value')