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

Parse large floats in CSVs that have periods as the thousands separator #18797

Open
matterhorn103 opened this issue Sep 17, 2024 · 0 comments
Open
Labels
A-io-csv Area: reading/writing CSV files enhancement New feature or an improvement of an existing feature

Comments

@matterhorn103
Copy link

Description

It's great to see that polars now supports reading from CSV files where the decimal separator is a comma, thanks for that!

Unfortunately, in the countries where usage of a decimal comma is common, you frequently encounter the period used as a thousands separator e.g. 1.299,99, and read_csv() (and I assume scan_csv() too) doesn't currently cope with this.

It would be nice to be able to specify a thousands separator, or to simply automatically parse . as a thousands separator when the user has passed decimal_comma=True.

@matterhorn103 matterhorn103 added the enhancement New feature or an improvement of an existing feature label Sep 17, 2024
@alexander-beedie alexander-beedie added the A-io-csv Area: reading/writing CSV files label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-io-csv Area: reading/writing CSV files enhancement New feature or an improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants