On Tue, Aug 4, 2009 at 1:40 PM, Gökhan Sever<gokhansever at gmail.com> wrote: > This is the loveliest of all solutions: > > c[isfinite(c)].mean() This handling of nonfinite elements has come up before. Please remember that this only for 1d or flatten array so it not work in general especially along an axis. Bruce