I have this code.
import pandas as pd
df = pd.read_csv(r"C:\Users\Hp\Desktop\Stock_Data_Set.csv")
df.head()
I am trying to read a csv file but when I run this code,I get no error and it stops running.If i remove the r,then it gives a unicode error that is
File "c:\Users\Hp\Desktop\test.py", line 2
df = pd.read_csv("C:\Users\Hp\Desktop\Stock_Data_Set.csv")
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX
escape