How can I edit Excel Workbooks using XLRD or openpyxl while preserving charts?

我与影子孤独终老i 提交于 2019-11-30 15:57:46

问题


I have a workbook that has some sheets in it. One of the sheets has charts in it. I need to use xlrd or openpyxl to edit another sheet, but, whenever I save the workbook, the charts are gone.

Any workaround to this? Is there another python package that preserves charts and formatting?


回答1:


This is currently not possible with either but I hope to have it in openpyxl 2.x. Patches / pull requests always welcome! ;-)



来源:https://stackoverflow.com/questions/19323049/how-can-i-edit-excel-workbooks-using-xlrd-or-openpyxl-while-preserving-charts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!