Keith, > > Is there something better than None to represent missing values so > > that when I convert to numpy arrays (actually matrices) I'll be all > > set? (I could use -99, but that would be even more embarrassing than > > my python skills.)
As Tim suggested, have a look at the masked array module. However, the result will NOT be exportable to matrices, unless you fill the missing value first (for example, with -99 ;)). I use MaskedArrays a lot, they're quite flexible. An alternative would be to use nan instead of None: >>> import numpy as N >>> x = [[1, nan], [2, 3]] >>> print N.matrix(x) [[ 1. nan] [ 2. 3. ]] Of course, the solution will depend on what you need... Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion