Answers for "python read data from a csv file"

0

how to read a csv file in python

import csv
with open('some.csv', newline='') as f:
    reader = csv.reader(f)
    for row in reader:
        print(row)
Posted by: Guest on May-14-2021
-1

read entire csv file python

import csv

f = open("fileName.csv") 	#  encoding="utf8"
reader = csv.DictReader(f)  #  delimiter=";", quotechar='"'
data = [row for row in reader]
Posted by: Guest on February-16-2021

Code answers related to "python read data from a csv file"

Python Answers by Framework

Browse Popular Code Answers by Language