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

Speed up xlsx_to_dict_normal_sheet(), especially when many blank columns are present #316

Merged
merged 1 commit into from Aug 25, 2023

Conversation

jnm
Copy link
Member

@jnm jnm commented Aug 25, 2023

No description provided.

especially when many blank columns are present
@@ -162,34 +161,35 @@ def xlsx_value_to_str(value):
return str(value).replace(chr(160), ' ')

def xlsx_to_dict_normal_sheet(sheet):

# Check for duplicate column headers
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed comment because none of the code did anything about duplicate headers

Comment on lines -170 to -171
# xls file with 3 columns mostly have a 3 more columns that are
# blank by default or something, skip during check
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed comment because none of the code did anything in particular with 3 columns

@JacquelineMorrissette JacquelineMorrissette merged commit be1c4ab into main Aug 25, 2023
@JacquelineMorrissette JacquelineMorrissette deleted the import-performance-improvement branch August 25, 2023 18:28
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.

None yet

2 participants