xlsxwriter Python combine() 不工作

xlsxwriter Python combine() Not Working

我正在尝试使用 xlsxwriter 创建一个 'combined' 图表,但 combine() 函数似乎不再有效。如果您只是使用他们网站 (http://xlsxwriter.readthedocs.org/en/latest/example_chart_combined.html) 上的演示代码,您会得到一个属性错误:'ChartColumn' 对象没有属性 'combine'.

有人知道 xlsxwriter 是怎么回事吗?

很可能您使用的是添加图表组合功能之前的旧版本模块。

像这样检查您的 xlsxwriter 版本:

python -c 'import xlsxwriter; print(xlsxwriter.__version__)'

至少需要 0.6.8。

我也提出了同样的问题。 但现在我升级了我的包,现在版本 0.9.9 工作正常