Pandas df.compare() returns the name of a column
Use assert_frame_equal(df1, df2, check_names=False)
I have two dataframes of simlar size. Lets say df1 and df2. For  both the data frames a common column is selected as index. Let's say the name column which is set as index is Id.
When I run the code df1.equals(df2), it returns False. But when I try to compare both of the data frames using df1.compare(df2) only the indexed column name i.e, Id is returned without any values in it.
What should I conclude from this?