Re: [Numpy-discussion] Usage of numpy.where and pylab.find with strings

2009-01-26 Thread Ariel Rokem
Doh! That's embarrassing! Thanks! On Jan 26, 2009, at 12:00 PM, Keith Goodman wrote: > On Mon, Jan 26, 2009 at 11:48 AM, Ariel Rokem > wrote: >> Hi - I am trying to find a string in a list with strings and have >> come >> across the following state of affairs: >> In [228]: subjects >> Out[22

Re: [Numpy-discussion] Usage of numpy.where and pylab.find with strings

2009-01-26 Thread Keith Goodman
On Mon, Jan 26, 2009 at 11:48 AM, Ariel Rokem wrote: > Hi - I am trying to find a string in a list with strings and have come > across the following state of affairs: > In [228]: subjects > Out[228]: > ['KAA', > 'CCS', > 'EJS', > 'MNM', > 'JHS', > 'LJL', > 'DVA', > 'FCL', > 'CNC', > 'KFM'

Re: [Numpy-discussion] Usage of numpy.where and pylab.find with strings

2009-01-26 Thread Robert Kern
On Mon, Jan 26, 2009 at 13:48, Ariel Rokem wrote: > Hi - I am trying to find a string in a list with strings and have come > across the following state of affairs: > In [228]: subjects > Out[228]: > ['KAA', > 'CCS', > 'EJS', > 'MNM', > 'JHS', > 'LJL', > 'DVA', > 'FCL', > 'CNC', > 'KFM', >

[Numpy-discussion] Usage of numpy.where and pylab.find with strings

2009-01-26 Thread Ariel Rokem
Hi - I am trying to find a string in a list with strings and have come across the following state of affairs: In [228]: subjects Out[228]: ['KAA', 'CCS', 'EJS', 'MNM', 'JHS', 'LJL', 'DVA', 'FCL', 'CNC', 'KFM', 'APM', 'GMC'] In [229]: subjects[0] Out[229]: 'KAA' In [230]: subjects[0