On Mon, Jul 23, 2012 at 4:10 PM, Urs Hackstein
<[email protected]> wrote:
> data=[[1, 2], [3, 4]]

I thought you said numpy array.
Don't think you can slice python lists.

This works here:
sage: import numpy as np
sage: data = np.array([[1, 2], [3, 4]])
sage: data[:,-2:]
array([[1, 2],
       [3, 4]])

-- 
Vegard Lima

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to