Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 错误com_错误:(-2147221005,';无效的类字符串';,无,无),将数据帧写入excel二进制笔记本时出错_Python_Pandas - Fatal编程技术网

Python 错误com_错误:(-2147221005,';无效的类字符串';,无,无),将数据帧写入excel二进制笔记本时出错

Python 错误com_错误:(-2147221005,';无效的类字符串';,无,无),将数据帧写入excel二进制笔记本时出错,python,pandas,Python,Pandas,我正在尝试使用xlwing库将数据框写入excel工作表(xlsb),该工作表包含公式: app = xw.App() book = xw.Book('ABC.xlsb') sheet = book.sheets('SL Dump') sheet.range('A1').values=final_merge_dataframe 运行上述代码后,我得到以下错误: com_错误:(-2147221005,“无效类字符串”,无,无) 请帮我解决上面的问题。我遇到了同样的问题。我最近从我的机器上

我正在尝试使用xlwing库将数据框写入excel工作表(xlsb),该工作表包含公式:

app = xw.App()

book = xw.Book('ABC.xlsb')

sheet = book.sheets('SL Dump')

sheet.range('A1').values=final_merge_dataframe
运行上述代码后,我得到以下错误:

com_错误:(-2147221005,“无效类字符串”,无,无)


请帮我解决上面的问题。我遇到了同样的问题。我最近从我的机器上卸载了Office/Excel 2010,从那时起我就收到了错误。我现在电脑上只有Office 365。版本16.0.12872.20200 32位。请帮助我解决上述问题。我遇到了相同的问题。我最近从我的机器上卸载了Office/Excel 2010,从那时起我就收到了错误。我现在电脑上只有Office 365。版本16.0.12872.20200 32位。