How to compare row to previous row in CSV?
<p>How do I compare a row to the previous row in a CSV file? </p>

<p>I need it for my if condition:</p>

<pre><code>if row[0] != row[0][of previous row]:
    do something....
</code></pre>