[英]Cannot use a csv file in google colab
我正在從我的谷歌驅動器上傳 CSV 文件,但它顯示了一個錯誤。
from google.colab import drive
drive.mount("/content/drive")
-> Drive already mounted at /content/drive; to attempt to forcibly remount,
call drive.mount("/content/drive", force_remount=True).
但是當我通過 colab 使用驅動器中的文件部分上傳它時,它顯示:
data = pd.read_csv('/content/drive/MyDrive/Datasets/fire_archive.gsheet')
->**OSError: [Errno 95] Operation not supported: '/content/drive/MyDrive/Datasets/fire_archive.gsheet'**
任何人都可以幫忙嗎?
CSV 文件不應該以.csv 結尾嗎?
您正在嘗試打開 Google 表格文件。 您可以從 Google 界面下載文件為 csv。
此消息不是錯誤:
Drive already mounted at /content/drive; to attempt to forcibly remount,
call drive.mount("/content/drive", force_remount=True).
告訴你驅動器已經掛載了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.