I want to compare two CSV files. If there is difference in a particular cell (Ex: 5th row and 3rd column) then give red color to that cell.
I can able to compare two files but unable to give red color to the difference cell I have tried this code
def compare():
try:
assert_frame_equal(df_sort_sas, df_sort_py)
return True
except: # appeantly AssertionError doesn't catch all
return False
compare()
I want output like this: Here red colored cell means that particular value is not equal with first csv cell