[SciPy-user] array manipulation

Robert Kern robert.kern@gmail....
Thu Jul 3 04:26:27 CDT 2008


On Thu, Jul 3, 2008 at 04:24, Nils Wagner <nwagner@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