Install openpyxl instead of xlwt

在pandas的indErrorIdentify.py文件中,接收到一个FutureWarning,指出xlwt包不再被维护,并且在未来的pandas版本中会删除对xls格式的支持。推荐安装openpyxl库来代替写入xls文件。尽管可以全局设置选项io.excel.xls.writer为'xlwt'来抑制这个警告,但此选项已被弃用,同样会引发警告。
摘要由CSDN通过智能技术生成

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)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值