user23343673
user23343673

Reputation: 1

Errorno 2 No such file or directyory

Calculyour textating total months - CSV file Iimportedd csv file correctly. I even received a path after adding csvpath.Trying toocalculatedg the total number of months in the CSVs file, now getting errorno 2, no such file or directory with the file link I tried to access.

Upvotes: -3

Views: 41

Answers (1)

Vinay Davda
Vinay Davda

Reputation: 87

You can verify your full path using os.path.abspath() function:

import os
csvpath = os.path.join('..', 'Resources', 'budget-data.csv')
os.path.abspath(csvpath)

This way you will get full path of desired csv file and you can check whether it's right path or not.

Check below screenshot: Ipython Screenshot

Upvotes: -1

Related Questions