On Wednesday 31 May 2006 10:25, John Hunter wrote: > I'm a bit of an ma newbie. I have a 2D masked array R and want to > extract the non-masked values in the last column. Below I use logical > indexing, but I suspect there is a "built-in" way w/ masked arrays. I > read through the docstring, but didn't see anything better.
R[:,-1].compressed() should do the trick. ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Numpy-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/numpy-discussion
