CVS data how to read it?

i got a CVS reading file’s data

but how do you access the data after reading the CVS file ?


with open(starfile , 'r') as file:

	reader = csv.reader(file)
	
	for row in reader:
	
		print(nrow  , " - " , row )
		data1.append( row )
		nrow = nrow +1
	

how to access the data in reader VAR outside the file reading code?

thanks
happy bl

You’ll want to move the data into a dictionary so you can access or edit individual values by keys: