Read a .csv into pandas from F: drive on Windows 7

后端 未结 6 1138
广开言路
广开言路 2020-12-19 02:04

I have a .csv file on my F: drive on Windows 7 64-bit that I\'d like to read into pandas and manipulate.

None of the examples I see read from anything other than a s

6条回答
  •  太阳男子
    2020-12-19 02:41

    I also got the same issue and got that resolved .

    Check your path for the file correctly

    I initially had the path like

    dfTrain = pd.read_csv("D:\\Kaggle\\labeledTrainData.tsv",header=0,delimiter="\t",quoting=3)
    

    This returned an error because the path was wrong .Then I have changed the path as below.This is working fine.

    dfTrain = dfTrain = pd.read_csv("D:\\Kaggle\\labeledTrainData.tsv\\labeledTrainData.tsv",header=0,delimiter="\t",quoting=3)
    

    This is because my earlier path was not correct.Hope you get it reolved

提交回复
热议问题