Skip to content
Advertisement

How put all rows heights to 20, and all columns width to 30

I want to put all row heights to 20 and all column widths to 30. I tried this code: All is just with pandas dataframe.

JavaScript

Advertisement

Answer

Creating excel file

JavaScript

Changing size of columns and rows

JavaScript

Before

enter image description here

After

enter image description here

Reference

https://xlsxwriter.readthedocs.io/worksheet.html

You might also want to take a look at this to dynamically change the row height and column width

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement