How do I apply a style to the whole row using XLWT Python Excel?
问题 I'm trying to apply a style that will highlight the whole row if one of the columns contains the value "Assets". The code below will highlight only the column with "Assets" in it, instead of the entire row. Is there a way to apply the style to the whole row? for row in csv_input: #Iterate through each column for col in range(len(row)): #Apply different styles depending on row if row_count == 0: sheet.write(row_count,col,row[col],headerStyle) elif row_count == 3: sheet.write(row_count,col,row