I'm trying to execute a code and I get the following error
SyntaxError: Non-ASCII character '\xe2' in file C:/path/ on line 3, but no encoding declared
import pandas as pd
df = pd.read_csv(“C:\Users\Kamal\Desktop\Desktop\datasets\ex.xls”)
for index, row in df.iterrows():
print (row['email'])
If you want to unleash your potential in this competitive field, please visit the Python course page for more information, where you can find the Python tutorials and Python frequently asked interview questions and answers as well.