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

Johann Cohen-Tanugi cohen at slac.stanford.edu
Sun Jan 20 22:01:22 EST 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 at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   



More information about the SciPy-User mailing list