I am using the following code to freeze the first column of my excel sheer generated using openpyxl. But this is not working and showing me an error.
dim_holder = DimensionHolder(worksheet=worksheet)
for col in range(worksheet.min_column, worksheet.max_column + 1):
dim_holder[get_column_letter(col)] = ColumnDimension(
worksheet, min=col, max=col, width=20)
# worksheet.column_dimensions.group(2, 10)
dim_holder['A'] = ColumnDimension(
worksheet, min=1, max=1, width=35)
worksheet.column_dimensions = dim_holder
worksheet.freeze_panes = 'A'
How can I freeze the entire first column, so that it will be sticky when I do horizontal scrolling ?