import csv
file1 = csv.reader(open('file1.csv', 'r'))
file2 = csv.reader(open('file2.csv', 'r'))
r1 = next(file1)
r1.pop(1)
r2 = next(file2)
r2.pop(1)
return r1 == r2
Python: Comparing specific columns in two csv files