I\'m trying to parse through a csv file and extract the data from only specific columns.
Example csv:
ID | N
If you need to process the columns separately, I like to destructure the columns with the zip(*iterable) pattern (effectively "unzip"). So for your example:
zip(*iterable)
ids, names, zips, phones = zip(*( (row[1], row[2], row[6], row[7]) for row in reader ))