import csv
with open('doc.csv','r') as f:
file=csv.reader(f)
for row in file:
if row==['NAME']:
print(row)
I wanted to print all the names from a csv file in python. I tried this using this method but I got a blank output. Can anyone help me out ?