Why do number change to scientific notation when importing CSV to Python?

  csv, python

I import a semicolon separated CSV to python as pandas DataFrame, but every time the numbers of the CSV is changed to scientific notation. I have tried to change the format of the CSV, but no change.

This is how the output looks like.

enter image description here

The code:

import pandas as pd

df=pd.read_csv("krav_data.csv", sep=";", encoding= "unicode_escape")

Source: Python Questions

LEAVE A COMMENT