otld.utils.openpyxl_utils.set_column_widths

otld.utils.openpyxl_utils.set_column_widths(worksheet: Worksheet, column_width: int | list[int]) Worksheet

Set the column widths for an Excel worksheet.

Args:

worksheet (Worksheet): An openpyxl worksheet. column_width (int | list[int]): Integer, or list of integers specifying column width(s)

Returns:

Worksheet: Updated worksheet