I have a pandas dataframe that I'm writing to a excel file with XlsxWriter
. I'm setting the cell format with
worksheet.set_column(first_index, last_index, None, cell_format)
On a few of my columns. By doing this however not only the cells with values in my excel file gets the format applied, but seemingly infinite rows get the cell format applied.
How can I limit the cell format to a set of rows?