简体   繁体   中英

Save excel file using python

I have a problem. I perform data cleaning on excel file using python in Jupiter notebook. There are 10 sheets in my excel file. My cleaning is done successfully. But when I open excel it same as before cleaning. How can I save my data permanently in an excel file using python pandas? I import file using import os

First you have to save your clean data and then you can directly open that file

df.to_csv(location,index=False)

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