For some reason I keep getting index out of range error for the following code! All I want to do is compare the next data item to current one to check redundancy.
count = 0
for row2 in data2:
count = count +1
if data2[count][0]!=row2[0]:
data3.append(row2)