Read from .csv file

Chris Rebert clp2 at rebertia.com
Mon Mar 9 17:05:40 EDT 2009


On Mon, Mar 9, 2009 at 1:56 PM, Karnama Ahmad (KTH)
<Ahmad.Karnama at partners.fortum.com> wrote:
>
> Dear all,
>
> I would be thankfukl if you answer to the following easy question:
>
> How can I read from a .csv file in Python and save the data in a array
> or dictionary.

Use the `csv` module -- http://docs.python.org/library/csv.html

Cheers,
Chris

-- 
I have a blog:
http://blog.rebertia.com



More information about the Python-list mailing list