Excel file format cannot be determined, you must specify an engine manually
大家在利用pandas读取excel文件的时候,一定会碰到类似的问题;这里主要写一下我踩过的坑:
#官网pandas对engine的解释
enginestr, default None
If io is not a buffer or path, this must be set to identify io. Supported engines: “xlrd”, “openpyxl”, “odf”, “pyxlsb”. Engine compatibility :
“xlrd” supports old-style Excel files (.xls).
“openpyxl” supports newer Excel file formats.
“odf” supports OpenDocument file formats (.odf, .ods, .odt).
“pyxlsb” supports Binary Excel files.
Changed in version 1.2.0: The engine xlrd now only supports old-style .xls files. When engine=None, the following logic will be used to determine the engine:
If path_or_buffer is an OpenDocument format (.odf, .ods, .odt), then odf will be used.
Otherwise if path_or_buffer is an xls format, xlrd will be used.
Otherwise if path_or_buffer is in xlsb format, pyxlsb will be used.
New in version 1.3.0.
Otherwise openpyxl will be used.
但是,我们大部分应该是下载Exel文件的时候,里面内容的格式很乱导致pandas不知道用那个engine工作,所以才会让你手动ing指定engine。这里很简单你把文件另存为相应的格式就欧克了。
Excel file format cannot be determined, you must specify an engine manually相关推荐
- 【Python】Pandas Excel file format cannot be determined, you must specify an engine manually.报错【已解决】
Pandas读取Excel报错 Excel file format cannot be determined, you must specify an engine manually. pd.read ...
- 无法读取excel: Excel file format cannot be determined, you must specify an engine manually.建模题目的数据
打数学建模遇到的,后面跑spsspro的时候也说excel文件加密打不开,后来把excel另存为了一下就行了.应该就是文件有加密
- ValueError: Excel file format cannot be determined, you must specify an engine manually.解决问题亲测有效
这个问题我搞了很久,最后终于搞明白了,先贴图,网上各种什么utf-8呀,格式化或者另存都不行,我都试过了. 问题在于原表格格式有些问题,最直接的办法就是把表格的内容复制到一个自己新建的表格中,然后改成 ...
- MICROSOFT EXCEL FILE FORMAT(BIFF2.1)
转自:http://www.xgdown.com/article/243/61822_1.htm 作用:http://unruledboy.cnblogs.com/archive/2004/07/07 ...
- LLVM Bitcode File Format - LLVM 比特流文件格式
LLVM Bitcode File Format - LLVM 15.0.0git documentationhttps://llvm.org/docs/BitCodeFormat.html 目录 A ...
- easypoi必填项_GitHub - wangjingting/poi-utils: help you more easy read or write excel file
author:邹凯明 poi-utils help you more easy reading or writing[TODO] excel file 本工具包入口类是ExcelFileUtil,对于 ...
- “undefined reference to JNI_GetCreatedJavaVM”和“File format not recognized”错误原因分析...
"undefined reference to JNI_GetCreatedJavaVM"和"File format not recognized"错误原因分析 ...
- libopencv_core.so: file not recognized: File format not recognized
/dependencies/OpenCV348/lib/libopencv_core.so: file not recognized: File format not recognized 解决方法: ...
- error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
vc里面遇到这个问题的解决方案 error C4335: Mac file format detected: please convert the source file to either DOS ...
最新文章
- 2013 ACM/ICPC Asia Regional Chengdu Online We Love MOE Girls 字符串STL 的应用
- android device monitor命令行窗口在哪里_Vulkan在Android使用Compute shader
- java jediscluster_方便jediscluster操作的工具类
- reactjs组件的props属性及其特点
- RedOffice教你DIY环保小日历
- 信息安全工程师-AES密码技术及XOR图像遮盖技术(JavaC++)
- Intel® Nehalem/Westmere架构/微架构/流水线 (5) - 高速缓存 存储器子系统
- php 协议头,入门PHP实现MQTT协议的固定头部(Fix header)
- 常用的简单的数值比较方法
- matlab已经停止工作,Win7旗舰版运行Matlab提示已停止工作解决措施
- itextpdf生成列表基本用法
- 志强CPU E5 E7参数,CPU内核参数对比图
- bootstrap学习使用
- 6 --> MAC层协议
- 长按android版本,Android系统长按power实现键硬件关机—高通sdm845
- 客户端面试知识点总结
- python 3 中的 os 以及 os.path 模块的使用详解!阿波的博客
- java实现单机版和网络对战版五子棋
- 3.golang数据结构之队列
- Java实现批阅奏章问题