[SciPy-user] array manipulation

Robert Kern robert.kern at gmail.com
Thu Jul 3 05:26:27 EDT 2008


On Thu, Jul 3, 2008 at 04:24, Nils Wagner <nwagner at iam.uni-stuttgart.de> wrote:
> Hi all,
>
> How can I remove duplicate entries from an array ?
>
>
>>>> Omega
> array([ 157.08,  314.16,  471.24,  157.08,  157.08,
>  314.16,  314.16,
>         471.24,  471.24])
>
> I am looking for an array
>
> Omega_new = array(([157.08,  314.16,  471.24]))

numpy.unique1d()

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco



More information about the SciPy-User mailing list