Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read csv into array

import csv 

items = []

with open('file.csv') as csvfile:    
	csvReader = csv.reader(csvfile)    
	for row in csvReader:        
		items.append(row[0])        
print(items)
Source by pythonspot.com #
 
PREVIOUS NEXT
Tagged: #python #read #csv #array
ADD COMMENT
Topic
Name
5+3 =