I am using python to open CSV file. I am using formula loop but I need to skip the first row because it has header.
So far I remember was something like this but it is missing something: I wonder if someone know this code what I am trying to use.
For row in kidfile:
if row.firstline = false <====== Something is missing here.
continue
if ......
解决方案
Probably you want something like:
firstline = True
for row in kidfile:
if firstline: #skip first line
firstline = False
continue
# parse the line
An other way to achive the same result is calling readline before the loop:
kidfile.readline() # skip the first line
for row in kidfile:
#parse the line