how to skip the first line of a csv file code example
Example: how to skip the first line of a csv file
file = open('sample.csv')
csv_reader = csv.reader(file)
next(csv_reader)
for row in csv_reader:
print(row)
file = open('sample.csv')
csv_reader = csv.reader(file)
next(csv_reader)
for row in csv_reader:
print(row)