Pandas error reading file in colab, FileNotFoundError: [Error 2] No such file or directory

Can you verify location of file ‘rooms.csv’ in colab? Is it at the top level or under some other dir?


placed under variable file

It should be in '/content' directory (default location), if you want to access it just by name.

Right now, it looks like it is in the '/' directory. You can place a / before rooms.csv as following:

df = pd.read_csv("/rooms.csv")

1 Like

Thanks for your timely response

1 Like