更改

跳转至: 导航搜索

Pandas读取XLSX文件错误

添加174字节, 2022年4月17日 (日) 18:53
无编辑摘要
raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported
错误原因:Pandas 默认 使用xlrd引擎读取Excel 文件,但是xlrd新版本(2.0.1)只支持xls文件(Office2007之前版本),所以使用openpyxl来处理,相比xlrd速度会慢,但是可以解决上面所说的问题。 官方解释:xlrd is a library for reading data and formatting information from Excel files in the historical .xls format. #仅支持操作xls老版本文件。 
[[File:PandasXLSXError1.png]]
1,138
个编辑

导航菜单