I compared two excel files and where ever there is change, I added "-->" to identify the change.
I used XlsxWriter and did conditional formatting to highlight the cells that contain "-->". I save and close the workbook.
Now, when I open the excel file from the folder that is saved and change "-->" to blank, the applied conditional formatting also disappears. But I want to keep the conditional formatting even after I remove "-->" value from the cell. Could someone help me pls?
Below is my code for conditional formatting
worksheet.conditional_format(1,1,df.shape[0],df.shape[1],
{'type': 'text',
'criteria': 'containing',
'value':' -->',
'format': green_fmt})