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

InexactError when reading a CSV file #397

Closed
KuiPN opened this issue Apr 10, 2019 · 2 comments
Closed

InexactError when reading a CSV file #397

KuiPN opened this issue Apr 10, 2019 · 2 comments

Comments

@KuiPN
Copy link

KuiPN commented Apr 10, 2019

I have a test.csv file that looks like this:

COL1,COl2,COL3
123,ABC,9398.193419185
456,DEF,74810199.033988851037472901827191090834

I used a simple code to read in the file:

CSV.File("test.csv") |> DataFrame

But encountered the following error:

ERROR: InexactError: check_top_bit(Int64, -3)

It appears that the problem is in the 2nd row that has too high a precision. If I remove, say, the last 5 digits of that large number, the code will read the file correctly.

@KuiPN
Copy link
Author

KuiPN commented Apr 10, 2019

by the way, this is my environment:

(v1.1) pkg> status CSV
    Status `~/.julia/environments/v1.1/Project.toml`
  [336ed68f] CSV v0.4.3
  [a93c6f00] DataFrames v0.17.1

@quinnj
Copy link
Member

quinnj commented Apr 26, 2019

This is solved in #395 by updating our Parsers.jl requirement.

@quinnj quinnj closed this as completed Apr 26, 2019
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

No branches or pull requests

2 participants