Skip to content

to_csv has changed the number #27771

Closed
Closed
@honghong2333

Description

@honghong2333

Code Sample, a copy-pastable example if possible

df1 = pd.read_csv("./data/test.csv")
print(df1)
df1.to_csv("./data/test1.csv")

test.csv has only one column "a" and one number is "656.964"when I prepare to use "to_csv" then it has changed to 656.9639999. 
I hope you can help solve this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Duplicate ReportDuplicate issue or pull requestIO CSVread_csv, to_csv

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions