Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Excel Question
#3
(Jan-05-2018, 06:04 PM)hshivaraj Wrote:
Quote:1st, run a pass to delete 100% matches. Load first question, compare it with every subsequent question, delete 100% matches; load 2nd question, compare it with every subsequent question, and so on until all 100% matches have been dealt with.

Easy way of removing duplicated is to convert then into a set. Doing so will delete all duplicates as in terms of mathematics. For instance

>>> set(list(["hello", "world", "hello", "world"]))
set(['world', 'hello'])
Makes sense?

You are a genius! Yes, that makes total sense. Thanks for the tip!
Reply


Messages In This Thread
Excel Question - by karaokelove - Jan-05-2018, 05:45 PM
RE: Excel Question - by hshivaraj - Jan-05-2018, 06:04 PM
RE: Excel Question - by karaokelove - Jan-05-2018, 06:08 PM
RE: Excel Question - by Povellesto - Jan-05-2018, 06:24 PM
RE: Excel Question - by karaokelove - Jan-05-2018, 06:31 PM
RE: Excel Question - by Gribouillis - Jan-05-2018, 07:41 PM
RE: Excel Question - by karaokelove - Jan-05-2018, 09:03 PM
RE: Excel Question - by Gribouillis - Jan-05-2018, 09:27 PM
RE: Excel Question - by karaokelove - Jan-05-2018, 09:35 PM
RE: Excel Question - by Gribouillis - Jan-05-2018, 09:38 PM
RE: Excel Question - by karaokelove - Jan-05-2018, 09:46 PM
RE: Excel Question - by snippsat - Jan-05-2018, 11:15 PM
RE: Excel Question - by karaokelove - Jan-05-2018, 11:17 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020