Home > front end >  csv file not importing in pandas using vscode.....showing "no such file or directory found"
csv file not importing in pandas using vscode.....showing "no such file or directory found"

Time:12-09

i was trying to import a csv file(named as bostondatasets1.csv) in pandas using vscode .i checked & modified the syntax multiple times but the terminal is still showing error. it's showing that "No such file or directory"... can someone tell me why is this happening or what's wrong in syntax...coz it's working on other's system just not in my system.

i just want the csv file to import in my python scriptenter image description here

CodePudding user response:

I checked your screenshot .There is a little issue with the path that you are adding is space issue. your are giving space before bostonfile.csv ie sample

project/data anaylysis/ bostonfile.csv

just remove space before bostonfile.csv it will work

CodePudding user response:

Try remove the spaces on your directory. Also try changing the format of your directory.

Bostondata = pd.read_csv(r"C:\directory\folder\location")

I was having issues with opening a file earlier and saw a few ways to work it out.

  • Related