h2oai / h2oai/datatable

to_csv is lossy for last ulp

Open
#1,868 3 comments 0 reactions 0 assignees View on GitHub
improve
Dominant language
C++
Stars
1.9k
Forks
164
Avg merge
7h 31m
Merged PRs (30d)
1

Description

```
x=0.33368629901358837

import pandas as pd
pd.DataFrame([x]).to_csv("frame.csv", index=False, header=False)
with open("frame.csv", "rt") as f:
b = f.read()
assert b == "0.33368629901358837\n", b

import datatable as dt
dt.Frame([x]).to_csv("table.csv")
with open("table.csv", "rt") as f:
b = f.read()
assert b == "C0\n0.33368629901358837\n", b <== fails
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.