Skip to content

Solve Excel loading for xlrd/openpyxl/pandas issues #222

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

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

berland
Copy link
Collaborator

@berland berland commented Dec 14, 2020

Matrix tested manually for xlrd in [1.2, 2.0] and for pandas
in [0.25.2, 1.1.5].

Openpyxl is now a direct dependency due to exception capture.

Solves #221

Matrix tested manually for xlrd in [1.2, 2.0] and for pandas
in [0.25.2, 1.1.5].

Openpyxl is now a direct dependency due to exception capture.
@lgtm-com
Copy link

lgtm-com bot commented Dec 14, 2020

This pull request introduces 1 alert when merging 5fb9b5c into b46f720 - view on LGTM.com

new alerts:

  • 1 for Unnecessary pass

@@ -1044,6 +1055,46 @@ def filter_nan_from_dict(params):
return cleaned_params


def infer_tabular_file_format(filename):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also look at using the inference code from xlrd to make this more reliable and with less overhead:
https://xlrd.readthedocs.io/en/latest/api.html#xlrd.inspect_format

Copy link
Collaborator Author

@berland berland Dec 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you support!

Pyscal must cater for xlrd==1.2.0 still for some time, where the inspect_format() is not available, so then I guess the trial-and-error approach is good for now.

Copy link
Collaborator

@tralsos tralsos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

3 participants