[SciPy-user] extracting an array with only non repeated entries

Johann Cohen-Tanugi cohen@slac.stanford....
Sun Jan 20 21:01:22 CST 2008


fantastic!
thx so much,
Johann

David Warde-Farley wrote:
> On 20-Jan-08, at 9:34 PM, Johann Cohen-Tanugi wrote:
>
>   
>> hello,
>> I have an array with integers, some of them repeating several times,  
>> and
>> I would like to get the array of all the integers present in the  
>> inital
>> array, but without repetition.... I started looking at the doc but
>> haven't found such a functionality yet.
>>     
>
> You're looking for the function numpy.unique1d .
>
> Regards,
>
> David
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   


More information about the SciPy-user mailing list