图示:
注意:pandas将不再支持xls
tsv_file.to_excel(new_name) # 保存为xls文件
说明:由于xlwt包不再被维护,xlwt引擎将在Pandas的未来版本中被移除。这是pandas中唯一支持xls格式编写的引擎。安装openpyxl并改为写入xlsx文件。您可以将io.excel.xls.writer 选项设置为“xlwt”来消除此警告。虽然此选项已被弃用,并且还会引发警告,但可以对其进行全局设置并取消警告。
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