Loading training data

Hi all,

I am using the following code to load training data: data = pd.read_csv(‘C:/Users/Sondre/OneDrive/Skrivebord/train.csv’, sep=’;’)

I get the following error message: C:\Users\Sondre\anaconda3\lib\site-packages\IPython\core\interactiveshell.py:3063: DtypeWarning: Columns (7,8,9,10,11,14,15,17,18,19,21,22,24,25,26) have mixed types.Specify dtype option on import or set low_memory=False.interactivity=interactivity, compiler=compiler, result=result)

Do anyone know how to deal with it?



Were you able to solve it @sondreolsson? Best way would be to manually define each column’s dtype, e.g.:

dtype={'WELL': string, 'DEPTH_MD': int64...}

You can read more in the following link: https://stackoverflow.com/questions/24251219/pandas-read-csv-low-memory-and-dtype-options