Python How Iterate Each Element Row And Compare With Another Elements

Python How Iterate Each Element Row And Compare With Another Elements