I am not a developer, do some python coding for the ease of my work. The new project i am working on is to have two excel files, compare them and generate changes. for the files, we will call them as Old File and New File. Both files got fixed columns but row may vary. in both files, most of the data are identical in same row and column, but some data may vary. say two sample columns from each files are
Old File New File
id item id item
------------------- -----------------------------
1 apple, banana 1 banana, grape
2 grape 2 apple
3 orange
I have read the files using nested list. For example old file data would be like
old_file_list = [ ['1','apple,banana'], ['2','grape'], ['3','orange'] ]
new_file_list = [ ['1','banana,grape'], ['2','apple'] ]
need to generate following output based on the data above,
print output
item old_file_id new_file_id status
----------------------------------------------
apple 1 2 changed
orange 3 - deleted
grape 2 1 changed
Please guide me how to achieve this, many thanks