Pandas读取Excel失败:Excel file format cannot be determined, you must specify an engine manually.指定engine

结论:

Python -- Pandas读取Excel失败:Excel file format cannot be determined, you must specify an engine manually.

指定参数 engine 为 'openpyxl' 或者 'xlrd' 同样失败

后发现 将 read_excel 改为 read_html 即可解决

因为读取此方法读取后是整个的大列表 所以有需要的话 可以最后再用 Numpy 转为 Pandas DataFrame数据框架

过程:

Pandas读取Excel失败:Excel file format cannot be determined, you must specify an engine manually.指定engine_第1张图片

 Pandas读取Excel失败:Excel file format cannot be determined, you must specify an engine manually.指定engine_第2张图片

 

Pandas读取Excel失败:Excel file format cannot be determined, you must specify an engine manually.指定engine_第3张图片

 

你可能感兴趣的:(Python,pandas,excel,python,习题,开发语言)