I have looked through all the internets and pandas docs for this.
I have 2 pandas DataFrames (with string values) They actually have 14 columns and 1667 rows.
I need to compare them and return the value or values that are in the longer one that are not in the shorter one
df1
0 X
1 Y
2 Z
df2
0 X
1 Y
Result:
df_diff
2 Z
I tried it with different merges and joins and maybe I am just stupid, but could not make it work. This is part of a function that compares 2 dataframes and returns all the non-equal rows in new dataframe. If you have the solution to the entire function feel free to post it as answer.