[SciPy-user] Quick way to delete all 'values' from array

Adrian Price-Whelan adrian.prw at gmail.com
Tue Jul 14 10:56:33 EDT 2009


Hey --

I'm just looking for the quickest way to remove all X from an array  
[a,b,c,d,X,e,X,f,gX] or it could be multidimensional, I suppose, but  
thats the idea. I understand delete() will remove a value at a  
specific index, but I was unsuccessful in combining this function with  
'where' to get what I want. Any suggestions?

Thanks,
-Adrian



More information about the SciPy-User mailing list