S
sagar
Hi all ,
I want to read data in a csv file using the python scripts.
when i gave the following code :
import csv
reader = csv.reader(open("some.csv", "rb"))
for row in reader:
print row
it is showing :
Traceback (most recent call last):
File "csv.py", line 1, in <module>
import csv
File "C:\Documents and Settings\meesa02\csv.py", line 2, in <module>
reader = csv.reader(open("some.csv", "rb"))
AttributeError: 'module' object has no attribute 'reader'
im a total fresher to this python...SO can any one help me out in
this...
Thanks in advance
Sagar Meesala
I want to read data in a csv file using the python scripts.
when i gave the following code :
import csv
reader = csv.reader(open("some.csv", "rb"))
for row in reader:
print row
it is showing :
Traceback (most recent call last):
File "csv.py", line 1, in <module>
import csv
File "C:\Documents and Settings\meesa02\csv.py", line 2, in <module>
reader = csv.reader(open("some.csv", "rb"))
AttributeError: 'module' object has no attribute 'reader'
im a total fresher to this python...SO can any one help me out in
this...
Thanks in advance
Sagar Meesala