I'm trying to run a csv file in python.
Here is the code I'm having trouble with:
with open("\Home\myname\Downloads\my_file.csv") as file_handler:
Not sure if this is relevant, but my name starts with an M and the file name starts with an A.
When I try to run it, this is the error message I get:
FileNotFoundError: [Errno 2] No such file or directory:
'\\Home\\myname\\Downloads\x07my_file.csv'
I tried replacing single backslashes with double, and I get:
FileNotFoundError: [Errno 2] No such file or directory:
'\\Home\\myname\\Downloads\\my_file.csv'
Can anyone show me how to get it to be read as just one slash? (I apologize if this is a simple question, I'm not too familiar with coding.)