qq_45164750 2023-04-12 17:35 采纳率: 0%
浏览 41

Python pandas读取Excel

使用pandas读取Excel,代码如下:

img

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

然后加上engine="openpyxl",代码如下:

img

会报错
zipfile.BadZipFile: File is not a zip file

这个怎么解决

  • 写回答

3条回答 默认 最新

  • 请叫我问哥 新星创作者: python技术领域 2023-04-12 18:06
    关注

    excel文件有问题,你在windows下能打开吗?
    如果能打开,另存为一个新文件再试试

    评论

报告相同问题?

问题事件

  • 创建了问题 4月12日