(Deleted) Pandas - error when importing "country-data.csv"

6 months ago by
When I try to import the country data document (just by running the cell), it gives me an error. This causes for the program to think that "country-data" does not exist, and therefore I can't run any of the cells below it. I have checked that I ran all the cells above it, so that cannot be the problem.
The code box I am talking about is the following:

with open(file_countries) as f:
lines = f.readlines()[:5]

and it gives me this error:

FileNotFoundError Traceback (most recent call last)
<ipython-input-96-6630adf771b7> in <module>()
----> 1 with open(file_countries) as f:
2 lines = f.readlines()[:5]
3 lines

FileNotFoundError: [Errno 2] No such file or directory: '../../datasets/country-data/country-data.csv'

If anyone knows what I could do about it, please tell me...

Kind regards,
Anneke Theunissen
Please login to add an answer/comment or follow this question.
The thread is closed. No new answer/comment may be added.

Similar posts:
Search »
  • Nothing matches yet.