Problem:
I am opening a .xls with pd.read_excel, but I got an error.
df_cima = pd.read_excel("docs/Presentaciones.xls")
xlrd.biffh.XLRDError: Excel xlsx file; not supported
The suffix of this file is .xls but this error tells me that it is .xlsx
Then I tried to add engine="openpyxl", which is usually used for reading the .xlsx when xlrd version is no longer 1.2.0, then it gives me another error
openpyxl.utils.exceptions.InvalidFileException: openpyxl does not support the old .xls file format, please use xlrd to read this file, or convert it to the more recent .xlsx file format.
MY env:
- pandas version: 1.1.5
- xlrd version: 2.0.1
- openpyxl version: 3.0.6
I do not want to change my xlrd version back to 1.2.0, from other answer I see that new version of xlrd support only .xls, but I don't understand why it is not working for my file.
Thanks in advance.
.xlsto.xlsxby opening inms excelor any otherexceleditor/viewer and saving it in same place/path with same name but different extension i.e ..xlsx