2
我的excel圖表有兩個索引列:'月'和'年'。 如何在下面的python代碼中將它們結合起來以獲得如下所示的圖形?具體而言,我如何指定多個類別?xlsxwriter圖表與多個類別
chart.add_series({
'categories': .............,
'values': ['Sheet 1', 0, 1, 10, 1]
})
的Excel圖表我想要實現
我已經嘗試過:
chart.add_series({
'categories': [['Sheet1', 0, 0, 10, 0], ['Sheet1', 0, 1, 10, 1]]
'values': ['Sheet1', 0, 2, 10, 2]
})
http://xlsxwriter.readthedocs.io/example_chart_combined.html這似乎是處理您的問題 –