How to compare rows of a dataframe in python for equality
<pre><code>1 0 0 0 1
0 0 0 0 0
0 1 0 0 1
1 0 0 0 1
0 0 0 0 0
1 0 0 0 1
</code></pre>

<p>I have a dataframe(see above). I need to compare the rows of it to get the matching rows. So for the above df I should get row1=row4=row6 and row2=row5 after comparison. Is there any efficient way to do this row comparison in python. </p>