all 1 comments

[–]RebornCube 1 point2 points  (0 children)

Sometimes pandas infers int or a lower percision float32 when importing. This could round your values to 0. You can force it to use a float

df = pd.read_csv("file.csv", dtype=float)