windows - How to Give Python Permission to Write Files -




i'm learning python , don't quite have vocabulary describe this. however, can't seem save files created in python window10 computer. discovered while seeking try file save in pandas. discovered same problem when creating db using sqlite3 script seemed have fun no database files appeared.

does know how fix this? fyi i've got dual boot ubuntu machine, can save files via python in ubuntu need work on windows machine too.

i running python via jupyter notebook.

i had make couple changes code snipped linked in order work.

a difference between windows , linux file path deliminator forward slash:

df.to_csv("tests/ysi_test_files/filehere.csv", index = false) 

if want hard absolute path file, like:

df.to_csv('c://folder//myfilename.csv', index=false) 

again, if copy folder path windows folder backslashes instead of forward slashes. need change in code save file:

c:\users\myuser\desktop\python\

to

c:/users/myuser/desktop/python/





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -