Errorno 2 No such file or directyory

34 Views Asked by At

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.

1

There are 1 best solutions below

0
Vinay Davda On

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