Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

accessing element from csv file in python

import itertools
# ...
with open(filename, 'rb') as f:
     row = next(itertools.islice(csv.reader(f), row_number, row_number+1))
     print row[column_number]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #accessing #element #csv #file #python
ADD COMMENT
Topic
Name
2+9 =