Error trying to read blockede xls file on python

早过忘川 提交于 2019-12-11 14:14:30

问题


I am trying to open an Xls file on using python pandas ( also tried several others libraries like xlrd and pyexcel) and wasnt able to open it. when a try to used the comand

df = pd.read_excel('mil.xls')

I get following error:

_locate_stream(Workbook): seen 0 5 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 20 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 40 2

I found out that when, before trying to read it, I unblock the file, that is, disable manually the protected view mode on excel, I could read the file normally. Is there a way I can unblock the .Xls file on python though some librarie ?

来源:https://stackoverflow.com/questions/47283342/error-trying-to-read-blockede-xls-file-on-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!