[Numpy-discussion] Question about indexing

Robin robince@gmail....
Thu May 29 18:58:48 CDT 2008


On Fri, May 30, 2008 at 12:57 AM, Robin <robince@gmail.com> wrote:
> You are indexing here with a 1d list [0,1]. Since you don't provide a
> column index you get rows 0 and 1.
> If you do a[ [0,1] , [0,1] ] then you get element [0,0] and element [0,1].

Whoops - you get [0,0] and [1,1].

Robin


More information about the Numpy-discussion mailing list