Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43510
| From | giacomo boffi <pecore@pascolo.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: CSV to matrix array |
| Date | 2013-04-13 14:06 +0200 |
| Organization | The Sun and the Rain. |
| Message-ID | <87li8m7hyk.fsf@pascolo.net> (permalink) |
| References | <2506a155-40b6-4040-bc12-a08ce0d79cd7@googlegroups.com> |
Ana Dionísio <anadionisio257@gmail.com> writes:
> Hello!
>
> I have a CSV file with 20 rows and 12 columns and I need to store it
> as a matrix.
array=numpy.array([row for row in csv.reader(open('Cenarios.csv'))])
NB: i used "array=" as in your sample code, BUT
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
CSV to matrix array Ana Dionísio <anadionisio257@gmail.com> - 2013-04-12 07:22 -0700
Re: CSV to matrix array Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-12 16:25 +0100
Re: CSV to matrix array Ana Dionísio <anadionisio257@gmail.com> - 2013-04-12 10:12 -0700
Re: CSV to matrix array rusi <rustompmody@gmail.com> - 2013-04-12 10:34 -0700
Re: CSV to matrix array Ana Dionísio <anadionisio257@gmail.com> - 2013-04-12 10:12 -0700
Re: CSV to matrix array Miki Tebeka <miki.tebeka@gmail.com> - 2013-04-12 16:10 -0700
Re: CSV to matrix array giacomo boffi <pecore@pascolo.net> - 2013-04-13 14:06 +0200
Re: CSV to matrix array Ana Dionísio <anadionisio257@gmail.com> - 2013-04-13 08:30 -0700
Re: CSV to matrix array Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-13 17:52 +0100
Re: CSV to matrix array Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-04-13 20:01 +0100
csiph-web