Skip to content

Commit

Permalink
Stop auto-parsing floats from file - this leads to data loss in some …
Browse files Browse the repository at this point in the history
…cases.
  • Loading branch information
cnuernber committed Jun 23, 2020
1 parent 8211862 commit fd0ecb4
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tech/ml/dataset/parse.clj
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@
:int16 (simple-col-parser :int16)
:int32 (simple-col-parser :int32)
:int64 (simple-col-parser :int64)
:float32 (simple-col-parser :float32)
:float64 (simple-col-parser :float64)
:uuid (simple-col-parser :uuid)
:packed-duration (make-datetime-simple-parser :packed-duration)
Expand All @@ -320,6 +319,7 @@

(def all-parsers
(assoc (into {} default-parser-seq)
:float32 (simple-col-parser :float32)
:keyword (simple-col-parser :keyword)
:symbol (simple-col-parser :symbol)
:instant (make-datetime-simple-parser :instant)
Expand Down

0 comments on commit fd0ecb4

Please sign in to comment.