I'm at a project where I need to download from a bank's webpage an excel sheet. When dowloaded and opened in excel it appears a sign warning the file is corrupted. I accept and it works perfectly. Nevertheless, when trying to read it on python
df = pd.read_excel("path/name.xls")
an error pops up.
Unsupported format, or corrupt file: Expected BOF record
I've tried with different encodings such as:
df=pd.read_excel("path/name.xls",encoding='utf-16le')
but it still does not work.
I've tried also reading with read_table :
Error tokenizing data. C error: Expected 1 fields in line 6, saw 2
These are the first rows of the dataset. The following rows, have the same format as the last ones.
I'm quite new at python, and cannot manage to find the solution to this. Would help any assistance. Thanks