1 | initial version |
Here is the process for reading a csv file and extracting the second element in each row:
import csv
csv.reader
function:with open('filename.csv') as csvfile:
reader = csv.reader(csvfile)
for row in reader:
second_element = row[1]
print(second_element)