I have a problem with Python 2.7 encoding I have a csv file with some french characters (mangé, parlé, prêtre ...), the code I'm using is the following:
import pandas as pd
path_dataset = 'P:\\Version_python\\Dataset\\data_set - Copy.csv'
dataset = pd.read_csv(path_dataset, sep=';')
for lab, row in dataset.iterrows():
print(row['Summary'])
I tried to add encoding to read_csv(), it didn't work. I tried unicode, decode(UTF-8) ... Nothing worked.
Then I tried to concatenate those extracted words with some text, and I got a utf-8 error, I don't know how to deal with that. Thanks
# -*- coding: utf-8 -*-