0
I have the following question: I read a csv file and in this file I want to take the lines 0:9 and leave the 10 on. I made this code and everything seems to be ok. My problem is: How to read multiple csv’s files like this and do that same process.
import csv
with open("teste2.csv") as f:
reader = csv.reader(f)
data = [r for r in reader]
header = data[0:9]
data = data[10:]
for row in data:
print(row)