About 51 results
Open links in new tab
  1. python - Removing duplicates in lists - Stack Overflow

    Nov 1, 2011 · In fact, despite the title "Python removing duplicates in lists", it doesn't seem like OP wanted to remove duplicates from within the same list at all. Rather, it looks like OP wanted to take …

  2. How to sort and remove duplicates from Python list?

    How to sort and remove duplicates from Python list? [duplicate] Asked 17 years ago Modified 2 years, 6 months ago Viewed 181k times

  3. python - Removing duplicates from a list of lists - Stack Overflow

    $ python -mtimeit -s'import nodup' 'nodup.donewk(nodup.k)' 100000 loops, best of 3: 4.44 usec per loop confirming that the quadratic approach has small-enough constants to make it attractive for tiny lists …

  4. How do I remove duplicates from a list, while preserving order?

    How do I remove duplicates from a list, while preserving order? Using a set to remove duplicates destroys the original order. Is there a built-in or a Pythonic idiom?

  5. python - How to remove all duplicate items from a list - Stack Overflow

    How would I use python to check a list and delete all duplicates? I don't want to have to specify what the duplicate item is - I want the code to figure out if there are any and remove them if so, keeping only …

  6. In Python, what is the fastest algorithm for removing duplicates from a ...

    In Python, what is the fastest algorithm for removing duplicates from a list so that all elements are unique *while preserving order*? [duplicate] Asked 17 years, 5 months ago Modified 4 years, 1 …

  7. python - Removing elements that have consecutive duplicates - Stack ...

    @normanius, to remove all duplicates, the input would need to be sorted. This question is only about removing consecutive duplicates, so you would not want to sort in this case.

  8. Remove duplicate dict in list in Python - Stack Overflow

    Feb 24, 2012 · Remove duplicate dict in list in Python Asked 13 years, 11 months ago Modified 1 year, 11 months ago Viewed 266k times

  9. Python: Iterate through list and remove duplicates (without using Set ...

    Apr 26, 2017 · And I want to be able to iterate through the list and remove the duplicates, WITHOUT using the set () function! So for example it should remove 'cat' and position s [2] BUT keep 'cat' at …

  10. Fastest Way To Remove Duplicates In Lists Python

    Nov 4, 2009 · I have two very large lists and to loop through it once takes at least a second and I need to do it 200,000 times. What's the fastest way to remove duplicates in two lists to form one?