Re: [Numpy-discussion] how to count Nan occurrence in a ndarray?

2011-10-07 Thread Chao YUE
Thanks Olivier. Chao 2011/10/7 Olivier Delalleau > You can use numpy.isnan(array).sum() > > -=- Olivier > > 2011/10/7 Chao YUE > >> The data is read from a .mat file. >> >> 2011/10/7 Chao YUE >> >>> Dear all, >>> >>> I have an ndarray with dimension of 4X62500. is there anyway I can count >>>

Re: [Numpy-discussion] how to count Nan occurrence in a ndarray?

2011-10-07 Thread Olivier Delalleau
You can use numpy.isnan(array).sum() -=- Olivier 2011/10/7 Chao YUE > The data is read from a .mat file. > > 2011/10/7 Chao YUE > >> Dear all, >> >> I have an ndarray with dimension of 4X62500. is there anyway I can count >> the number of missing value (NaN)? because I want to know how many >>

Re: [Numpy-discussion] how to count Nan occurrence in a ndarray?

2011-10-07 Thread Chao YUE
The data is read from a .mat file. 2011/10/7 Chao YUE > Dear all, > > I have an ndarray with dimension of 4X62500. is there anyway I can count > the number of missing value (NaN)? because I want to know how many > observations are missing? > > Thanks for any idea, > > Chao > > -- > > ***

[Numpy-discussion] how to count Nan occurrence in a ndarray?

2011-10-07 Thread Chao YUE
Dear all, I have an ndarray with dimension of 4X62500. is there anyway I can count the number of missing value (NaN)? because I want to know how many observations are missing? Thanks for any idea, Chao -- *** Chao

Re: [Numpy-discussion] Crash on (un-orthodox) __import__

2011-10-07 Thread Christoph Gohlke
On 10/6/2011 9:33 PM, Robert Kern wrote: > On Thu, Oct 6, 2011 at 17:25, Paul Ivanov wrote: >> Hi Andrea, >> >> On Tue, Oct 4, 2011 at 3:04 AM, Andrea Gavana >> wrote: >>> Hi All, >>> I was fiddling here and there with some code doing dynamic import of >>> stuff, and I noticed that this c