I have a dataframe df
df
Out[15]:
Subject ID
StartDate
2017-11-06 ID1
2017-11-07 ID1
2017-11-08 ID2
2017-11-10 ID3
and I save it in an excel file
writer = pd.ExcelWriter(os.path.join(folders_path,'summary.xls'))
df.to_excel(writer,'Sheet1')
writer.save()
However I would like to format the color of the rows according to the Subject ID , i.e. I would like a different colour for each ID
