0
Got a question in python
Hey guys got a question... How do you give the file name?... Because whenever I put as df = pd.read_csv('train.csv') Whenever I put this code it shows file not found.... So what should I do?... But it is there in my system... I have even tried other ways like df = pd.read_csv(r'#and here the file location') and still it shows file not found error ... What to do?
1 ответ
+ 4
If you are real sure to use the correct naming for the directory, filename and extension, you can run this code to see the current working directury:
import os
print(os.getcwd())
Now you can check if this folder contains the desired file.