9

Is it possible?

I know ws.set_row('B:B', options={'hidden': True})

But, is there something like ws.set_row('B:B', options={'delete_row': True})?

PedroBiel
  • 489
  • 1
  • 8
  • 21

3 Answers3

3

To quote the Worksheet docs:

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

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

Other values like delete_row are not acceptable.

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
ArunJose
  • 1,999
  • 1
  • 10
  • 33
3

It doesn't seem possible to do what you ask. Probably the best approach remains the one proposed in this old post.

Massifox
  • 4,369
  • 11
  • 31
0

You cannot delete a column with XlsxWriter. The best option is to structure your application so it doesn't write data to the column in the first place.

jmcnamara
  • 38,196
  • 6
  • 90
  • 108