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

David Warde-Farley dwf@cs.toronto....
Sun Jan 20 20:45:22 CST 2008


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


More information about the SciPy-user mailing list