[Numpy-discussion] how to list all the values in a ndarray without repeat (like filter in excel)

Benjamin Root ben.root@ou....
Thu Oct 13 09:09:19 CDT 2011

On Thursday, October 13, 2011, Chao YUE <chaoyuejoy@gmail.com> wrote:
> Dear all,
> if I have a ndarray like array([1,2,3,2,3,1,1,1,2,2,....,2,2,3])
containing some values that are flag for data quality.
> how can list all the values in this array, like doing a descriptive
statistics. I guess I should use Scipy statistics ?
> Thanks for any ideas.
> Chao

Would np.unique() do the job?

Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20111013/1d58c2c3/attachment.html 

More information about the NumPy-Discussion mailing list