Home > OS >  xlsx writer - How to get a thick border on only 1 side of a cell?
xlsx writer - How to get a thick border on only 1 side of a cell?

Time:09-24

I'm writing some pandas dataframes to an excel file. I was wondering if it's possible to write a format to have just a thick right border for example. I tried the below:

 center_thick_rborder = workbook.add_format({'align' : 'center',
                                             'right' : True,
                                             'border':5})

but it just applied a thick border to every border in the column, where I only want the right border. Is this possible? If so, how?

I've seen enter image description here

  • Related