Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reading a csv file in python

import csv

# open the file
with open('csvfile.csv' , 'r') as csvfile:
    # create the object of csv.reader()
    csv_file_reader = csv.reader(csvfile,delimiter=',')
    for row in csv_file_reader:
        print(row)  
Source by www.alixaprodev.com #
 
PREVIOUS NEXT
Tagged: #reading #csv #file #python
ADD COMMENT
Topic
Name
4+2 =