Merging Excel cells using Xlsxwriter in Python

前端 未结 1 834
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 16:43

I want to merge several series of cell ranges in an Excel file using Python Xlsxwriter, I found the Python command in the Xlsxwriter documentation in this website http://xls

1条回答
  •  天涯浪人
    2021-01-05 17:25

    Almost all methods in XlsxWriter support both A1 and (row, col) notation, see the docs. So the following are equivalent for merge_range():

    worksheet.merge_range('B4:D4',    'Merged Range', merge_format)
    worksheet.merge_range(3, 1, 3, 3, 'Merged Range', merge_format)
    

    0 讨论(0)
提交回复
热议问题