Skip to content

Incorrect parsing of CSV file. Locale is ignored for some columns #607

Closed
@antonarhipov

Description

@antonarhipov

I have encountered a funny bug when parsing a CSV file. The floating point numbers in that file are specified with a comma , instead of dot ., and this should be a subject of specifying the correct locale. However, it seems that Locale is respected for one column and ignored for the other. For instance, the comma is ignored for the number 68,83, and the result is 6883.

image

CSV file: https://github.com/antonarhipov/kotlin-sandbox/blob/master/energy-consumption.csv
Notebook: https://github.com/antonarhipov/kotlin-sandbox/blob/master/demo.ipynb

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcsvCSV / delim related issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions