I'm using the csv library to parse a file. I need to skip 6 rows and go straight to the 7th row and parse the rest. I'm able to run reader.next() 6 times, but it looks odd:
reader = csv.reader(csvfile)
reader.next()
reader.next()
reader.next()
reader.next()
reader.next()
reader.next()
for row in reader:
print row
So I'm wondering if there's a way to skip 6 rows another way?