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

前端 未结 18 800
萌比男神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条回答
  •  盖世英雄少女心
    2020-12-15 23:41

    Have you tried?

    df = pd.read_csv("Users/alekseinabatov/Documents/Python/FBI-CRIME11.csv")
    

    or maybe

    df = pd.read_csv('Users/alekseinabatov/Documents/Python/"FBI-CRIME11.csv"')
    

    (If the file name has quotes)

提交回复
热议问题