添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

259浏览 · 2023-09-21 10:10:34
This error message typically occurs when reading an Excel file using pandas and the file format cannot be determined automatically. To solve this issue, you need to specify the engine parameter in the read_excel() function, and set it to either "openpyxl" or "xlrd", depending on the version of Excel file you are trying to read. For example, if you are trying to read an Excel file using pandas and the file format is .xlsx, you can use the following code: import pandas as pd df = pd.read_excel('filename.xlsx', engine='openpyxl')