0

I am trying to access a CSV file uploaded right in the same folder that my python notebook is from the colaboratory.

when I simply do :

pd.read_csv("train.csv")

It throws me : "File b'train.csv' does not exist" error.

Any idea is highly appreciated.

aghd
  • 685
  • 2
  • 9
  • 20
  • Can you post the relevant code snippet? – Sam H. Jan 07 '18 at 22:35
  • Refer to [this question](https://stackoverflow.com/questions/47744131/colaboratory-i-can-access-to-my-google-drive-folder-and-file) for recipes to access files either locally or on Drive. – Bob Smith Jan 07 '18 at 23:17
  • Possible duplicate of [Colaboratory: i can access to my google drive folder and file?](https://stackoverflow.com/questions/47744131/colaboratory-i-can-access-to-my-google-drive-folder-and-file) – Bob Smith Jan 07 '18 at 23:18

1 Answers1

0

When you upload the file. It's not saved in the current folder.

uploaded = files.upload()

It's stored as the value in the uploaded dictionary, with the filename as key.

korakot
  • 37,818
  • 16
  • 123
  • 144