我正在尝试将pandas数据帧列表导出为excel
list_of_df_to_dump = [df1,df2,...,df100]
list_of_tab_names = ['df1','df2',...,'df100']
writer = ExcelWriter(excel_name + '.xlsx')
for i,j in list_of_df_to_dump,list_of_tab_names:
i.to_excel(writer,j,index = False)
writer.save()
我收到以下错误:
TypeError: 'DataFrame' objects are mutable, thus they cannot be hashed
关于如何解决这个问题的想法或者完成同样事情的替代方法?我不知道列表将在多长时间内手动执行
答案 0 :(得分:1)
您必须使用Texture myTexture = Content.Load<Texture2D>("character");
来迭代两个列表中的项目对。请尝试以下修复:
zip