前程有光

关注

pandas无法打开.xlsx文件,xlrd.biffh.XLRDError: Excel xlsx file; not supported

前程有光

关注

阅读 31

2021-09-28

导致原因:
原因是最近xlrd更新到了2.0.1版本,只支持.xls文件。所以pandas.read_excel(‘xxx.xlsx’)会报错。

解决办法:
用openpyxl代替xlrd打开.xlsx文件:

df = pd.read_excel("../student_excel.xlsx",engine="openpyxl")
print(df)

相关推荐

松鼠树屋

xlrd.biffh.XLRDError: Excel xlsx file; not supported

松鼠树屋 45 0 0

Gaaidou

Python+Excel:xlrd.biffh.XLRDError: Excel xlsx file; not supported,两种解决方案

Gaaidou 352 0 0

40dba2f2a596

[vue] 导入excel文件 XLSX

40dba2f2a596 46 0 0

像小强一样活着

vue:write-excel-file页面文字转为xlsx文件

像小强一样活着 10 0 0

飞空之羽

java poi读取excel文件(xlsx)

飞空之羽 53 0 0

鲤鱼打个滚

C# 读取 Excel xlsx 文件

鲤鱼打个滚 73 0 0

前行的跋涉者

java 解析xls和xlsx excel文件

前行的跋涉者 51 0 0

刘员外__

python 操作 excel 文件xlsx格式(一)

刘员外__ 113 0 0

王老师说

Qt: Linux下生成.xlsx文件(excel表格文件)

王老师说 197 0 0

心存浪漫

java使用poi(XSSFWorkbook)读取excel(.xlsx)文件

心存浪漫 116 0 0

精彩评论(0)

0 0 举报