Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

using csv module how to read perticular lines in csv

with open("test.csv", "rb") as infile:
    r = csv.reader(infile)
    for i in range(8): # count from 0 to 7
        next(r)     # and discard the rows
    row = next(r)  
 
PREVIOUS NEXT
Tagged: #csv #module #read #perticular #lines #csv
ADD COMMENT
Topic
Name
8+2 =