1、xlrd.biffh.XLRDError: Excel xlsx file; not supported
① xlrd升级到2.0.1版本后,只支持.xls文件。要不然卸载了重新装个1.2.0的xlrd吧
pip uninstall xlrd
pip install xlrd==1.2.0
② 用openpyxl代替xlrd打开.xlsx文件:
df=pandas.read_excel(‘data.xlsx’,engine=‘openpyxl’)
感谢佬哥: https://blog.youkuaiyun.com/weixin_44073728/article/details/111054157