Can't read a file in google colaboratory

后端 未结 4 723
广开言路
广开言路 2021-02-02 17:12

Can\'t read a file in google colaboratory . I have .ipynb file and .csv files in the same directory but when I try to run:

train = pd.read_csv(\"train.csv\") 
<         


        
4条回答
  •  灰色年华
    2021-02-02 17:38

    make sure you put a / in the beginning of the path. Whey you copy path by right click on your mounted drive from the file explorer, it does not copy the beginning forward slash. make sure you add it in the path.

    gdrive path

提交回复
热议问题