[Numpy-discussion] question on use of newaxis
Wed Feb 9 04:00:31 CST 2011
I have a simple array
a = array([1,2,3])
I want to take the last two terms and make it a column vector:
But I get a funny error: TypeError: long() argument must be a string or a
number, not 'NoneType'
It does work if I do
But I don't understand why the first wouldn't work. Is there a reason such
syntax is not supported? It would be very useful.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion