openpyxl – adjust column width size
You could estimate (or use a mono width font) to achieve this. Let’s assume data is a nested array like [[‘a1′,’a2’],[‘b1′,’b2’]] We can get the max characters in each column. Then set the width to that. Width is exactly the width of a monospace font (if not changing other styles at least). Even if you … Read more