Matrix (list-in-list), how to get a column?
Russell Blau
russblau at hotmail.com
Thu Oct 21 12:10:50 EDT 2004
"F. Petitjean" <littlejohn.75 at noos.fr> wrote in message
news:4177d9e5$0$842$626a14ce at news.free.fr...
> On Thu, 21 Oct 2004 17:19:04 +0200, Arvid Andersson <arvid at linux.se>
wrote:
> >
> > I have some data that looks like this:
> > data = [[1, 2], [3, 4], [5, 6]]
> >
> > I want to send columns 1 and 2 to a function
> > as two variables, say "plot(col1,col2)".
...
> >>> import Numeric as N
...
> Hope that helps. Don't hesitate to try directly at the interpreter
> prompt.
Ok, let's see what happens:
>>> import Numeric as n
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named Numeric
I think you left out a step in your instructions.... ;-)
--
I don't actually read my hotmail account, but you can replace hotmail with
excite if you really want to reach me.
More information about the Python-list
mailing list