Skip to content

Unable to extract currency from excel formatted cells #53

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

Open
samiashi opened this issue Dec 16, 2024 · 1 comment
Open

Unable to extract currency from excel formatted cells #53

samiashi opened this issue Dec 16, 2024 · 1 comment
Labels
bug Something isn't working open for contribution Invites open-source developers to contribute to the project.

Comments

@samiashi
Copy link

samiashi commented Dec 16, 2024

When I have an excel file with some cells formatted with currency, the conversion does not include the currency label. It only seems to extract the value.

For example an excel file with the following:
Image

Returns:
'## Sheet1\n| Unnamed: 0 | Unnamed: 1 | Unnamed: 2 | Unnamed: 3 | Unnamed: 4 |\n| --- | --- | --- | --- | --- |\n| Item | Count | Cost | Weight | Total |\n| Breakfast | 20 | 5 | NaN | 100 |\n| Laptops | 5 | 1199 | NaN | 5995 |\n| Car tires | 8 | 199 | 150 kg | 1592 |\n| NaN | NaN | NaN | NaN | 7687 |'

currency_label_invoice.xlsx
currency_label_invoice_2.xlsx

@afourney
Copy link
Member

Hmm, good catch. The type and formatting info are in the cell metadata which might not be considered when we load the table via pandas. I'll see if there's an alternative approach.

@gagb gagb added bug Something isn't working open for contribution Invites open-source developers to contribute to the project. labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working open for contribution Invites open-source developers to contribute to the project.
Projects
None yet
Development

No branches or pull requests

3 participants