I'm looking to develop a unit test where it compares two DataFrames and returns True if their lengths are the same and if not returns the difference in length as well as what the missing output rows are.
For instance: Example 1:
df1 = {0,1,2,3,4}
df2 = {0,1,2,3,4}
True
Example 2:
df1 = {0,1,2,3,4}
df2 = {0,2,3,4}
False. 2 is missing.
Notifies me that the second item in df1 is missing from df2.
Is this something that is possible?