Newbie - I have a Python script that adjusts the width of different columns of an excel file, according to the values specified:
import openpyxl from string impo
Updated version as of openpyxl 3.0.0 (using .columns fails with TypeError: expected :
TypeError: expected
for column_cells in ws.columns: length = max(len(as_text(cell.value)) for cell in column_cells) ws.column_dimensions[column_cells[0].column_letter].width = length