I am working on pandas project where i have to compare two dataframes , just picking up one row from D1 and comparing it with all the rows of D2 (D2 rows are at different place) and return true or false, bellow are my dataframes
DF1
Animals planets
dog Earth
dragon Mars
cat Pluto
DF2
Animals planets
cat Pluto
dog Earth
I am pretty new to pandas , I tried normal compare but its throwing me an error (Can only compare identically-labeled DataFrame objects)
df1.compare(df2)