From: Paul F. D. <pa...@pf...> - 2001-03-07 19:09:20
|
They are being held for an administrative reason, my administrator password won't work, and I haven't gotten the SourceForge people to fix it yet. I don't understand the administrative reason since I can't get in to see what it really is -- something about implicit destination, which is greek to me. I'm at Spam 9 and can't work on it. -----Original Message----- From: Sam Tannous [mailto:sta...@ci...] Sent: Wednesday, March 07, 2001 11:02 AM To: Paul F. Dubois Subject: Numpy array matching Hi Paul, My emails to numpy-discussion don't seem to make it. Is something wrong at sourceforge? Is it just me? Thanks, Sam -- Sam Tannous email: sta...@ci... ) Software Engineer phone: 919.392.2541 ( NSITE/SPLoB Tools pager: 800.365.4578 C[_] ----- Forwarded message from Sam Tannous <sta...@ci...> ----- Date: Wed, 7 Mar 2001 13:51:55 -0500 From: Sam Tannous <sta...@ci...> Subject: array matching To: num...@li... If I have a character array t: >>> t = array(['abcd','aacd','ddfa','qqcd']) >>> print t [[a b c d] [a a c d] [d d f a] [q q c d]] What's the most efficient way to create an array that contains the indexes of the rows that match a particular pattern. If I want to match a 'c' in the third column, I'd like the array to look like this: i = array([0,1,3]) Thanks, Sam ----- End forwarded message ----- |