Skip to content
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

Support for handling broken excel formulas as strings #316

Closed
skytwosea opened this issue Nov 29, 2024 · 1 comment
Closed

Support for handling broken excel formulas as strings #316

skytwosea opened this issue Nov 29, 2024 · 1 comment

Comments

@skytwosea
Copy link

Currently, when excel sheets are read into a dataframe using pd.read_excel(file, engine="calamine",), all cells that contain broken formulas are transcribed as Null/None, and there is no option to set this behaviour to capture the Excel error code(s). Reading a sheet with dtype='string' does not address this issue: it enforces the string type for Excel cells with valid data, but broken formulas are still read in as Null/None.

This is not ideal: information is being lost. Many sheets have valid empty/null cells that should be distinguished from cells with broken formulas via an error code (#NULL!, #REF!, #VALUE!, etc).

Calamine provides functions to deserialize types as <T> or None: see here. fastexcel should provide a parameter or config switch to set this behaviour.

@skytwosea
Copy link
Author

edit: I should have looked harder... duplicate of #229

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant