Hi I have a very large excel file that does not have consistent headers on each tab (ie: headers are found in row 18-23). I am trying to write a for loop that will iterate through each tab to set the headers correctly.
I have imported this with pd.read_excel and all data is in a dictionary with tab name = key, and tab data = dataframe. I got here but am not able to get the row number where the condition is true (that will then need to be set as the header).
df_GRID=pd.read_excel(input_GRID, sheet_name=df_GRID_tabs, header=0)
for key,values in df_GRID.items():
print(key,values.iloc[:, 0] == '8760 Time Series')