Is there any effcient way to write different dimensions dictionaries to excel using pandas?
Example:
import pandas as pd mylist1=[7,8,'woo'] mylist2=[[1,2,3],[4,5,6],['foo','boo','doo']] d=dict(y=mylist1,x=mylist2) df=pd.DataFrame.from_dict(d, orient='index').transpose().fillna('') writer = pd.ExcelWriter('output.xls',engine = 'xlsxwriter') df.to_excel(writer) writer.save() The current results,
The desired results,
Please note that my database is much bigger than this simple example. So a generic answer would be appreciated.

