I'm trying to read in some excel files but they seem to have formatting errors. I can't understand the error messages when I try to read the files and have no idea how to fix these. Please help.
I've tried reading in a new excel document I've just created and have had no problems.
df = pd.read_excel('2013-ID19.xls', index_col=0)
print(df.head())
File "exportDataToPandas.py", line 7, in <module>
    pd.read_excel('2013-ID19.xls', index_col=0)
  File "/Users/cj/anaconda3/lib/python3.7/site-packages/pandas/util/_decorators.py", line 178, in wrapper
    return func(*args, **kwargs)
  File "/Users/cj/anaconda3/lib/python3.7/site-packages/pandas/util/_decorators.py", line 178, in wrapper
    return func(*args, **kwargs)
  File "/Users/cj/anaconda3/lib/python3.7/site-packages/pandas/io/excel.py", line 307, in read_excel
    io = ExcelFile(io, engine=engine)
  File "/Users/cj/anaconda3/lib/python3.7/site-packages/pandas/io/excel.py", line 394, in __init__
    self.book = xlrd.open_workbook(self._io)
  File "/Users/cj/anaconda3/lib/python3.7/site-packages/xlrd/__init__.py", line 157, in open_workbook
    ragged_rows=ragged_rows,
  File "/Users/cj/anaconda3/lib/python3.7/site-packages/xlrd/book.py", line 92, in open_workbook_xls
    biff_version = bk.getbof(XL_WORKBOOK_GLOBALS)
  File "/Users/cj/anaconda3/lib/python3.7/site-packages/xlrd/book.py", line 1278, in getbof
    bof_error('Expected BOF record; found %r' % self.mem[savpos:savpos+8])
  File "/Users/cj/anaconda3/lib/python3.7/site-packages/xlrd/book.py", line 1272, in bof_error
    raise XLRDError('Unsupported format, or corrupt file: ' + msg)
xlrd.biffh.XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'<table><'
 
     
     
    