在colab里怎样读取google drive数据

网友投稿 684 2022-09-02

在colab里怎样读取google drive数据

在colab里怎样读取google drive数据

参考: ​​python - Google Colab: how to read data from my google drive? - Stack Overflow​​

其他答案我都试过, 效果不行, 但是以下work for me:

What I have done is first:

from google.colab import drivedrive.mount('/content/drive/')

Then

%cd /content/drive/My Drive/Colab Notebooks/

After I can for example read csv files with

df = pd.read_csv("data_example.csv")

If you have different locations for the files just add the correct path after My Drive

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Mybatis源码解析:SQL解析流程
下一篇:商品SKU系统,你如何设计?(sku怎么设计)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~