indErrorIdentify.py:93: FutureWarning: As the xlwt package is no longer maintained, the xlwt engine will be removed in a future version of pandas. This is the only engine in pandas that supports writing in the xls format. Install openpyxl and write to an xlsx file instead. You can set the option io.excel.xls.writer to ‘xlwt’ to silence this warning. While this option is deprecated and will also raise a warning, it can be globally set and the warning suppressed.
csv_data_source.to_excel(“D:\nlp\bigdata\analyse\0526\confusion_analysis.xls”,sheet_name=name)
Install openpyxl instead of xlwt
最新推荐文章于 2024-06-21 10:34:53 发布
在pandas的indErrorIdentify.py文件中,接收到一个FutureWarning,指出xlwt包不再被维护,并且在未来的pandas版本中会删除对xls格式的支持。推荐安装openpyxl库来代替写入xls文件。尽管可以全局设置选项io.excel.xls.writer为'xlwt'来抑制这个警告,但此选项已被弃用,同样会引发警告。
摘要由CSDN通过智能技术生成