Python Forum
count unique values of a list with a list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
count unique values of a list with a list
#3
Ah I used {} instead of [].

If combined it would be:


mylist = [["longname", "1234"], ["longname", "1223434"], ["longnaaame", "12314444223234"]]
(reading and learning the difference between (), [], {} Angel )
Reply


Messages In This Thread
RE: count unique values of a list with a list - by 3Pinter - Jul-05-2018, 11:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  remove duplicates from dicts with list values wardancer84 27 1,372 May-27-2024, 04:54 PM
Last Post: wardancer84
  Strange behavior list of list mmhmjanssen 3 557 May-09-2024, 11:32 AM
Last Post: mmhmjanssen
  Get an average of the unique values of a column with group by condition and assign it klllmmm 0 582 Feb-17-2024, 05:53 PM
Last Post: klllmmm
  Copying the order of another list with identical values gohanhango 7 1,433 Nov-29-2023, 09:17 PM
Last Post: Pedroski55
  Sample random, unique string pairs from a list without repetitions walterwhite 1 624 Nov-19-2023, 10:07 PM
Last Post: deanhystad
  Search Excel File with a list of values huzzug 4 1,463 Nov-03-2023, 05:35 PM
Last Post: huzzug
  No matter what I do I get back "List indices must be integers or slices, not list" Radical 4 1,455 Sep-24-2023, 05:03 AM
Last Post: deanhystad
  Function to count words in a list up to and including Sam Oldman45 15 7,135 Sep-08-2023, 01:10 PM
Last Post: Pedroski55
  Comparing List values to get indexes Edward_ 7 1,481 Jun-09-2023, 04:57 PM
Last Post: deanhystad
  Delete strings from a list to create a new only number list Dvdscot 8 1,875 May-01-2023, 09:06 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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