Python 使用xlsxwriter从Excel中删除行/列

Python 使用xlsxwriter从Excel中删除行/列,python,xlsxwriter,Python,Xlsxwriter,可能吗 我知道ws.set_行('B:B',options={'hidden':True}) 但是,是否有类似于ws.set_row('B:B',options={'delete_row':True})?的内容来引用: 其他值,如delete\u row是不可接受的。似乎不可能按您的要求执行。也许最好的方法仍然是老帖子中建议的方法。您不能使用XlsxWriter删除列。最好的选择是构造应用程序,这样它就不会首先将数据写入列 """ The options parameter is a dicti

可能吗

我知道
ws.set_行('B:B',options={'hidden':True})

但是,是否有类似于
ws.set_row('B:B',options={'delete_row':True})

的内容来引用:


其他值,如
delete\u row
是不可接受的。

似乎不可能按您的要求执行。也许最好的方法仍然是老帖子中建议的方法。

您不能使用XlsxWriter删除列。最好的选择是构造应用程序,这样它就不会首先将数据写入列

"""
The options parameter is a dictionary with the following possible keys:

'hidden'
'level'
'collapsed'
""""