Hi i am trying to import csv data into python but i am getting following error i have tryied alll thing but i am getting same error please shelp me

File “C:\Users\sbhalerao\AppData\Local\Temp\ipykernel_22404\231595100.py”, line 4
df=PD.read_csv(“C:\Users\sbhalerao\Documents\IPL Data\Best Bowling Economy Innings - 2008.csv”)
SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape

In python literal strings the \ is an escape character.
If you want a \ in a string you can double up the \ or use raw strings.


s1 = “c:\\user\\barry”
s2 = r “c:\user\barry”

Thanks Barry for the help