Excel file format cannot be determined, you must specify an engine manually.

D:\software\python38\python.exe C:\Users\yy\Downloads\fuxi-data-testing-master\质控\1.输出三级绩效质控规则用例excel.py

Traceback (most recent call last):

File "C:\Users\yy\Downloads\fuxi-data-testing-master\质控\1.输出三级绩效质控规则用例excel.py", line 8, in <module>

df = pd.read_excel(file_path,sheet_name='界面1质控规则',usecols=['规则id','规则大类','规则小类','质控表编号','关联表编号','质控字段英文名','质控字段中文名','质控逻辑','参考值'])

File "D:\software\python38\lib\site-packages\pandas\io\excel\_base.py", line 478, in read_excel

io = ExcelFile(io, storage_options=storage_options, engine=engine)

File "D:\software\python38\lib\site-packages\pandas\io\excel\_base.py", line 1500, in init

raise ValueError(

ValueError: Excel file format cannot be determined, you must specify an engine manually.

todo,还没解决。。。

加上了engine之后

复制代码
df = pd.read_excel(file_path,engine='openpyxl',sheet_name='界面1质控规则',usecols=['规则id','规则大类','规则小类','质控表编号','关联表编号','质控字段英文名','质控字段中文名','质控逻辑','参考值'])

报错

zipfile.BadZipFile: File is not a zip file

原因:

这个文件是加密的。。,另存一份不加密的再说

相关推荐
冷雨夜中漫步8 分钟前
python反转列表reverse()和[::-1]哪个效率更高
开发语言·python
rainbow688910 分钟前
Python面向对象编程与异常处理实战
开发语言·python
weixin1997010801613 分钟前
锦程物流item_get - 获取详情接口对接全攻略:从入门到精通
数据库·python
2501_9071368234 分钟前
基于Python+QT6的移动硬盘弹出工具
python·软件需求
2501_907136821 小时前
python 界面元素控件库工具,可以看到python的可视控件和使用方法
python·软件需求
2301_765703141 小时前
开发一个简单的Python计算器
jvm·数据库·python
yj15581 小时前
客厅阳台改卧室需要注意什么?
python
boss-dog1 小时前
关于强化学习入门理解和示例
python·强化学习
一只理智恩1 小时前
筹备计划·江湖邀请令!!!
python·langchain
Sagittarius_A*2 小时前
角点检测:Harris 与 Shi-Tomasi原理拆解【计算机视觉】
图像处理·人工智能·python·opencv·计算机视觉