Error opeing file in Jupyter for Guided project

Screen Link: <


My Code:
opened_file = open(“C:\Users\jaimi\Desktop\googleplaystore.csv”)
read_file = reader(opened_file)
android = list(read_file)
android_header = android[0]
android = android[1:]

What I expected to happen:

I expected to be able to open the Google file on jupyter notebook outside of the Dataquest platform.
I tried adding encoding=‘utf8’ but i receive the same error.
What actually happened:

SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape

Have the slashes be forward slashes in “opened_file” and put in encoding as utf8.

opened_file = open(“C:/Users/jaimi/Desktop/googleplaystore.csv”, encoding=“utf8”)

Hope that helps!

Thank you! that worked.

1 Like