In google colab, I received an xls file and was trying to covert it pandas dataframe as follows.
res=requests.get(url, cookies=cookies)
df=pd.read_excel(res.content)
However, it gives me an error message as follows
Excel file format cannot be determined, you must specify an engine manually.
I tried openpyxl
df=pd.read_excel(bb, engine='openpyxl')
but it gave me another error
File is not a zip file
I have tried 'xlrd', but it also gave me an error message.
Someone insisted that it might be a matter of a hidden xls file and it could possibly be solved by simply removing the hidden file, here, but I could not find any hidden file in google colab directory by using this command
!ls -al
What's strange is that these errors occur randomly. It often works well. Sometimes it works one time out of 20 times and sometimes it does not work one time out of 20 times.
Can anyone help me?