Permission denied when pandas dataframe to tempfile csv

后端 未结 6 2086

I\'m trying to store a pandas dataframe to a tempfile in csv format (in windows), but am being hit by:

[Errno 13] Permission denied: \'C:\\Users\\Username\\AppData\\Loca

6条回答
  •  滥情空心
    2021-02-20 02:40

    Sometimes,you need check the file path that if you have right permission to read and write file. Especially when you use relative path.

    xxx.to_csv('%s/file.csv'%(file_path), index = False)
    

提交回复
热议问题