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

原因:

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

相关推荐
IvanCodes5 小时前
Python 数据处理(十三):JSON、CSV 与数据序列化
开发语言·python
Patrick在香港6 小时前
Claude 工具调用返回空:8 次失败里只有 1 次状态码不对,其余全带 200
爬虫·python·api·claude·香港
Web3&Basketball6 小时前
CRM Agent 后训练实战:3 倍更少错误
python·架构·大模型·agent·推理
AIFQuant7 小时前
ETF行情API接入踩坑记:从报错到跑通的七个问题
python·金融·区块链·etf·基金
GPU实战笔记8 小时前
云端 Python 开发:JupyterLab 还是 VS Code Remote-SSH?
python·vs code·jupyterlab·remote-ssh·远程开发
狗狗狗狗狗乐啊9 小时前
搭一个 AI 对话工作台 AChat:从 0 到可用的完整记录(一)
python·react.js·ai编程
白猫不黑9 小时前
Python实现简易Web弱口令爆破与防护方案
python·web安全·计算机·网络安全·黑客·信息安全·渗透测试
kuuailetianzi10 小时前
Python初识:定位、优势与发展历程
python
guoran_shini10 小时前
LLM微调-训练垂类问答模型
python·lora·sft
basketball61610 小时前
Python FastAPI 介绍以及常用方法
python·fastapi·vllm·ai infra