[SciPy-user] extracting an array with only non repeated entries
Sun Jan 20 20:45:22 CST 2008
On 20-Jan-08, at 9:34 PM, Johann Cohen-Tanugi wrote:
> I have an array with integers, some of them repeating several times,
> I would like to get the array of all the integers present in the
> 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 .
More information about the SciPy-user