I have an Excel worksheet from which I want to delete certain columns based on their column names using python openpyxl as the column positions aren't fixed.
Their indices can change every time i get a new report, but the column name to be deleted remains the same each time.
In the below example i want to delete columns if their names are equal to = ["To be determined","No Value","Total"]

I have tried fetching the column index number so i can delete those using index value, but it isn't working as expected.
where max_file is the excel file path and sh2 is sheet2 containing the data
