简体   繁体   English

无法访问 Google Colaboratory 中的 csv 文件

[英]Unable to access a csv file in Google Colaboratory

I am using Google Colaboratory to run my machine learning project.我正在使用 Google Colaboratory 运行我的机器学习项目。 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.我想将.csv 导入 pandas 并将其用于进一步处理,但我面临一个错误,指出找不到该文件。 Do I need to provide any authorization to access that file or is it mandatory to upload file into google colab?我是否需要提供任何授权才能访问该文件,或者是否必须将文件上传到 google colab? That file already exists in same folder on Google Drive as that of.ipynb notebook.该文件已存在于 Google Drive 上与 of.ipynb 笔记本相同的文件夹中。

Code: read_csv function to read file代码: read_csv function 读取文件pandas read_csv 函数读取文件

Error: Unable to locate错误:无法定位无法定位

Do I need to provide any authentication or something like that?我需要提供任何身份验证或类似的东西吗?

See the I/O sample notebook for examples showing how to work with local files and those stored on Drive.有关如何使用本地文件和存储在 Drive 上的文件的示例,请参阅I/O 示例笔记本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM