简体   繁体   中英

csv export failing when executing jupyter notebook from command line

I have a jupyter notebook that i am executing from command line using

jupyter run Anomaly.ipynb

now in my notebook i am exporting the dataframe as csv

df.to_csv('exceptions.csv')

Query- when I run the notebook from browser it exports the csv file in the folder but when I run the notebook from command line it does not exports the file

changed my execution command to and it worked

runipy Anomaly.ipynb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM