Unsupported format, or corrupt file: Expected BOF record; found b'<H1 alig' I get this error when I try to connect by excel file with pandas.
Asked
Active
Viewed 78 times
0
-
What happens when you save a sheet from the file as `.csv` and read it into pandas? – hilberts_drinking_problem Feb 04 '22 at 09:54
-
Have a look at this thread. [LINK](https://stackoverflow.com/questions/16504975/error-unsupported-format-or-corrupt-file-expected-bof-record) – Mattis Seehaus Feb 04 '22 at 10:27
-
1It would be helpful if you show us your code and explain in more detail. Have you seen this, https://stackoverflow.com/questions/16504975/error-unsupported-format-or-corrupt-file-expected-bof-record? – Park Feb 04 '22 at 14:33
1 Answers
0
Answer:
import pandas as pd
data=pd.read_html('File_name.xls')[0]
data.to_excel('NewFile_name.xlsx')

Park
- 2,446
- 1
- 16
- 25

Rahul Singh
- 1
- 1