'Compare value of a cell in DataFrame with value of a cell in a given row and the same column [closed]

Hey I have DataFrame of numbers and I would like to create new dataFrame with true and false values by comparing the value of a cell in i row and j column with a value of a cell in '1' row and 'j' column. I do that using double for loop but maybe there is more elegant solution.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source