0

I am trying to load the CSV to my jupyter notebook.

my file path in jupyter notebook: Data/country_vaccinations.csv

My Os:- Windows 10

and I am getting this error!!! click here for my code and corresponding error

would any of you be kind enough to help me with this issue, please?

4
  • What is the output when you run: import os, os.listdir('Data') (in separate lines) Commented Jan 24, 2021 at 9:15
  • give the absoulute path or make sure the csv in the samepath as that of notebook Commented Jan 24, 2021 at 9:16
  • @Ajay the CSV is exactly in the same path as that of the notebook. I have created a folder named Data in jupyter and the file is in that folder. Commented Jan 24, 2021 at 9:20
  • @AnirbanSaha Its file not found error. But I have created the folder called Data in jupyter notebook. Commented Jan 24, 2021 at 9:25

2 Answers 2

1

If the file is in Data subfolder, change 'Data/' to 'Data\\'.

This should do the job.

Sign up to request clarification or add additional context in comments.

6 Comments

it is in different folder and actually, pandas can read the CSV file.
Changed the answer above
the jupyter file is in one folder and data file is in another folder. and yes, i tried the above technique. But it did not help.
See again above. There was a display issue with my answer. You should change with two slashes
@ gtomer, still the issue persists.
|
0

I gave my local path instead of jupyter notebook path and it worked.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.