i have a csv file with the following data as follows: input
i want to convert the columns into rows: output
I have tried the following code:
mydict = dict(zip(df.title, df.score))
# s = pd.Series(list(mydict.items()))
# df_final = pd.DataFrame(s)
and write the ouput to a new csv file. How can i do that?