Skip to content

Scientific notation write issue in v0.5 #480

Description

@chris-german

I've noticed when writing to CSV files in 0.5, it changes numbers and no longer puts them in scientific notation.

In the code below, the issue is reproduced.

1.9263083035570026e-11 is displayed as 1.9263083035570026e-11, but when looking at the written file, it is written as 19263083035570026e-27. This makes written files a bit more difficult to scan through.

using DataFrames, CSV

y = collect(1.0:4.0)
x = [1.0, 0.0, 1.9263083035570026e-11, 0.5]
df = DataFrame(y = y, x = x)

CSV.write("test.csv", df)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions