I'm trying to read the CSV file only if has between 200 and 400 records. I want it to ignore otherwise. For some weird reason my code never reaches the print(row) line
with open(file) as csv_file:
row_count = sum(1 for line in csv_file)
if (row_count>200 and row_count<400):
csv_reader = csv.reader(csv_file, delimiter=',')
for row in csv_reader:
print(row)