Search code examples
pythoncsvsymbols

CSV file reading index with symbols


I'm reading a CSV file, the first "column" it's ID, but python is bringing 'Id' instead of Id

df_mk = pd.read_csv(dl_path + "\\" + filename, encoding='latin-1')

can't make it read it as Id


Solution

  • maybe your encoding is wrong?

    utf-8 is more common than latin-1