I have a python dictionary below:
dict = {'stock1': (5,6,7), 'stock2': (1,2,3),'stock3': (7,8,9)};
I want to change dictionary to dataframe like:
How to write the code?
I use:
pd.DataFrame(list(dict.iteritems()),columns=['name','closePrice'])
But it will get wrong. Could anyone help?
