FileNotFoundError: [Errno 2] File does not exist Jupyter notebook

FileNotFoundError: [Errno 2] File does not exist Jupyter notebook
 

Cause:

The path or file you specified does not exist

df=pn.read_csv(r"C:\kisha\Downloads\owid-covid-data.csv")

FileNotFoundError: [Errno 2] File C:\kisha\Downloads\owid-covid-data.csv does not exist: 'C:\\kisha\\Downloads\\owid-covid-data.csv'

Workaround:

Get the current directory and specify the right path to the dataset

import os
print(os.getcwd())

Leave a Reply

Discover more from XscalibaL

Subscribe now to keep reading and get access to the full archive.

Continue reading