PermissionError: Permission denied to reading CSV File in Python

前端 未结 4 1470
故里飘歌
故里飘歌 2021-01-05 19:11

Simply I wanted to read the csv file that I converted from Data Frame after read the another csv file and same time I tried to remove header from in it.

4条回答
  •  粉色の甜心
    2021-01-05 19:24

    In Windows, if you have the CSV file open (e.g. in Excel), and you run the script it cannot save to X_Data.csv since the file is in use and raises the PermissionError.

    Close the file/Excel and try running your script again

提交回复
热议问题