Hi All,
I am using below code to read the data from csv file , getting error.
AttributeError: module 'csv' has no attribute 'reader'[/b]
Code:
Regards,
SP
I am using below code to read the data from csv file , getting error.
AttributeError: module 'csv' has no attribute 'reader'[/b]
Code:
import csv
path = '/home/user1/python-docs-samples/pubsub/cloud-client/'
file= open( path +"csv.txt", "r")
read_data = csv.reader(file)
for line in read_data:
t=line[1],line[2]
print(t)Please help me to overcome this issue.Regards,
SP
