我正在尝试将此excel文件更改为csv,并希望用Nan替换空单元格。另外,对于如何更好地清理excel中的数据,您有什么建议吗?到目前为止我的代码:with open("data%s.csv" %(sheet1.name.replace(" ","")), "w",encoding='utf-8') as f
我在python中使用win32.client将我的.xlsx和.xls文件转换成.csv。当我执行这段代码时,它给出了一个错误。我的代码是: '''converts a MS Excel file to csv w/ the same name in the same, os
from win32com.client