Skip to content

ENH: read_excel (xlrd engine) add parameter for ignore_workbook_corruption #40274

Closed
@aster94

Description

@aster94

Is your feature request related to a problem?

yes, sometimes, expecially when created by 3rd party application old excel file can be corrupted:

https://www.codeforests.com/2020/05/28/fix-the-compdocerror-for-xlrd/
https://stackoverflow.com/questions/12705527/reading-excel-files-with-xlrd
https://stackoverflow.com/questions/34550624/python-xlrd-read-excel-file-error/
https://titanwolf.org/Network/Articles/Article?AID=f1370e16-c9ef-4892-a00e-b1bafee2f6a8#gsc.tab=0

Describe the solution you'd like

xlrd's team recently in version 2.0 (december 2020) solved this with a flag: ignore_workbook_corruption, please see https://xlrd.readthedocs.io/en/latest/changes.html
So my desire would be to just have this flag inside the pandas's function read_excel

API breaking implications

any, I guess

Describe alternatives you've considered

Open the file directly with xlrd and pass it to pandas
I may be unaware of other solutions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions