“CSV file does not exist” for a filename with embedded quotes

前端 未结 18 803
萌比男神i
萌比男神i 2020-12-15 23:16

I am currently learning Pandas for data analysis and having some issues reading a csv file in Atom editor.

When I am running the following code:

imp         


        
18条回答
  •  旧时难觅i
    2020-12-15 23:40

    Being on jupyter notebook it works for me including the relative path only. For example:

    df = pd.read_csv ('file.csv')
    

    But, for example, in vscode I have to put the complete path:

    df = pd.read_csv ('/home/code/file.csv')
    

提交回复
热议问题