Permission denied when pandas dataframe to tempfile csv

后端 未结 6 2145

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 03:00

    Just give a valid path and a file name

    e.g:

    final_df.to_csv('D:\Study\Data Science\data sets\MNIST\sample.csv')
    

提交回复
热议问题