Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Showing Source of Conflict #256
I'm using mergeduplicates to combine data from two spreadsheets and show the cells with discrepancies. I want the cells with discrepancies to show "Source1: value1, Source2: value2" rather than the unordered Conflict((value2,value1)).
When a conflict occurs, is there a way to determine the source of the conflict after I've done petl.cat on the data and performed petl.mergeduplicates?
One possibility might be to use petl.conflicts and add a column showing the source to each table? But, I prefer having the duplicates merged for readability purposes.
Hi Paul, thanks for raising this. As it currently stands I don't think there's any direct way to associate the source of the conflict with each conflicting value. However, a workaround as you suggest is to use petl.conflicts. Here's a trivial example: