變更

跳到: 導覽搜尋

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
次編輯

導覽選單