I am trying to write code in which I have two variables in python code "D" and "T". I want to assign each variable the set of values of respective csv file columns "Data" and "Target". If each column contains 100 values the variable should read 100 value every time. But I can't get the idea how to do so?
with open('dataML.csv') as f:
reader = csv.reader(f, delimiter=';')
for row in reader:
D = row['data']
T = row['target']
D.append(data)
T.append(target)