Re: Selecting unique values

2011-07-26 Thread Kumar Mainali
Thank you everybody. I can extract unique values now. - Kumar On Tue, Jul 26, 2011 at 2:38 PM, Dan Stromberg wrote: > > Some good stuff has already been suggested. Another possibility is using a > treap (not a duptreap but a treap): > > http://stromberg.dnsalias.org/~dstromberg/treap/ > > If y

Re: Selecting unique values

2011-07-26 Thread Dan Stromberg
Some good stuff has already been suggested. Another possibility is using a treap (not a duptreap but a treap): http://stromberg.dnsalias.org/~dstromberg/treap/ If you just need things unique'd once, the set + yield is an excellent option. If you need to keep things in order, but also need to ma

RE: Selecting unique values

2011-07-26 Thread Sells, Fred
: Tuesday, July 26, 2011 5:04 AM To: python-list@python.org Subject: Re: Selecting unique values Kumar Mainali wrote: > I have a dataset with occurrence records of multiple species. I need to > get rid of multiple listings of the same occurrence point for a species > (as you see below in red

Re: Selecting unique values

2011-07-26 Thread Peter Otten
Kumar Mainali wrote: > I have a dataset with occurrence records of multiple species. I need to > get rid of multiple listings of the same occurrence point for a species > (as you see below in red and blue typeface). How do I create a dataset > only with unique set of longitude and latitude for eac

Re: Selecting unique values

2011-07-26 Thread sparky gmail
On 7/25/2011 3:03 PM, Kumar Mainali wrote: Greetings I have a dataset with occurrence records of multiple species. I need to get rid of multiple listings of the same occurrence point for a species (as you see below in red and blue typeface). How do I create a dataset only with unique set of l

Re: Selecting unique values

2011-07-26 Thread Chris Angelico
On Tue, Jul 26, 2011 at 8:03 AM, Kumar Mainali wrote: > Greetings > > I have a dataset with occurrence records of multiple species. I need to get > rid of multiple listings of the same occurrence point for a species (as you > see below in red and blue typeface). How do I create a dataset only with

Selecting unique values

2011-07-26 Thread Kumar Mainali
Greetings I have a dataset with occurrence records of multiple species. I need to get rid of multiple listings of the same occurrence point for a species (as you see below in red and blue typeface). How do I create a dataset only with unique set of longitude and latitude for each species? Thanks i