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