Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

group by list python

values = set(map(lambda x:x[1], mylist))
newlist = [[y[0] for y in mylist if y[1]==x] for x in values]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #group #list #python
ADD COMMENT
Topic
Name
9+9 =