Followig up this question and dataframes, I am trying to convert a dataframe into a dictionary. In pandas I was using this using this:
df_3 = df_2.unstack().t