for row in DataCaptured:
    if row[0] not in Year:
        Year.append(row[0])
if row[1] not in Category:
    Category.append(row[1])
How to create a list in Python with the unique values of a CSV file?