Reputation: 13
For some reason when I do the following:
filename = 'time_series_covid_confirmed_US.csv'
with open (os.path.join("mnt/c", "Users/ibhat/repo/nasa-hackathon-2020/covid-parsing", filename)) as csv_file:
I get "No such file or directory" when trying to access a csv file. Any ideas?
Upvotes: 0
Views: 65
Reputation: 5583
You need to add a forward slash before mnt
:
filename = 'time_series_covid_confirmed_US.csv'
with open (os.path.join("/mnt/c", "Users/ibhat/repo/nasa-hackathon-2020/covid-parsing", filename)) as csv_file:
Upvotes: 1