Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to access a csv file in Google Colaboratory

I am using Google Colaboratory to run my machine learning project. I wanted to import .csv into pandas and use it for further processing, but I am facing an error stating that the file is not found. Do I need to provide any authorization to access that file or is it mandatory to upload file into google colab? That file already exists in same folder on Google Drive as that of .ipynb notebook.

Code: pandas read_csv function to read file pandas read_csv function to read file

Error: Unable to locate Unable to locate

Do I need to provide any authentication or something like that?

like image 730
Gaurav Avatar asked Jan 29 '26 17:01

Gaurav


1 Answers

See the I/O sample notebook for examples showing how to work with local files and those stored on Drive.

like image 177
Bob Smith Avatar answered Jan 31 '26 16:01

Bob Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!