I have a dataframe which looks like this.
| ID | Name | Sales | Sales2 |
|---|---|---|---|
| 111 | SAM | xxx | xxx |
| 123 | JON | xxx | xxx |
I want to produce an excel like this.
I tried using set tables but it is not working
styles = [{ 'props': ('background-color: green') }]
fd_final_highlight = fd_final.style.set_table_styles(styles)
Weekly_excel= pd.ExcelWriter('C:/Users/xxx.....xlsx', engine='xlsxwriter')
fd_final_highlight.to_excel(Weekly_excel, sheet_name='Master', index=0)
Weekly_excel.save()

