Skip to content

BUG:pd.read_excel does not read xlsb #34237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ShayHa opened this issue May 18, 2020 · 3 comments · Fixed by #34261
Closed

BUG:pd.read_excel does not read xlsb #34237

ShayHa opened this issue May 18, 2020 · 3 comments · Fixed by #34261
Assignees
Labels
Milestone

Comments

@ShayHa
Copy link

ShayHa commented May 18, 2020

In the docs it says:

Supports xls, xlsx, xlsm, xlsb, and odf file extensions read from a local filesystem or URL. Supports an option to read a single sheet or a list of sheets.

When I try to read a xlsb file with specifying engine='openpyxl'
I get the next error:

df = pd.read_excel(r"file.xlsb",engine='openpyxl')
openpyxl does not support binary format .xlsb, please convert this file to .xlsx format if you want to open it with openpyxl

I do have the openpyxl module installed

Thank you

@ShayHa ShayHa added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels May 18, 2020
@ShayHa ShayHa changed the title BUG:pd.read_excel does not read xlsb BUG:pd.read_excel does not read xlsb #ExcelIO May 18, 2020
@ShayHa ShayHa changed the title BUG:pd.read_excel does not read xlsb #ExcelIO BUG:pd.read_excel does not read xlsb May 18, 2020
@TomAugspurger
Copy link
Contributor

https://pandas.pydata.org/docs/user_guide/io.html?highlight=excel#excel-files says that just the pyxslb engine supports xlsb. We could make that clear in the docstring for read_excel, and perhaps in the error message if we're the one reading raising it (but are we, or is openpyxl?)

@TomAugspurger TomAugspurger added Docs IO Excel read_excel, to_excel good first issue and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels May 18, 2020
@ShayHa
Copy link
Author

ShayHa commented May 18, 2020

Thank you. using engine='pyxlsb' worked.

@miguelmarques1904
Copy link
Contributor

take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment