If I set up an auto filter and subsequently I Hide some rows, the autofilter stops to the column before the hidden column.
for example:
# Add autofilter to the header row for all columns
main_sheet.auto_filter.ref = f"A1:L1000"
main_sheet.column_dimensions['F'].hidden = True
the autofilter, instead of being setup until column L it stops at column E