Re: Importing a csv file
- From: Tim Golden <mail@xxxxxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 12:55:45 +0100
John Machin wrote:
On Apr 30, 7:21 pm, Tim Golden <m...@xxxxxxxxxxxxxxx> wrote:sagar wrote: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>
Only *almost* certainly, Tim? *Maybe*? You don't believe what the
above traceback lines are telling you?
It's my natural British diffidence :) We almost never make
unqualified statements.
TJG
.
- References:
- Importing a csv file
- From: sagar
- Re: Importing a csv file
- From: Tim Golden
- Re: Importing a csv file
- From: John Machin
- Importing a csv file
- Prev by Date: Re: Dict Copy & Compare
- Next by Date: [ANN] Update to Python Quick Reference Card (for Python 2.4) (v0.67)
- Previous by thread: Re: Importing a csv file
- Next by thread: What's the life time of the variable defined in a class function?
- Index(es):
Relevant Pages
|