values = set(map(lambda x:x[1], mylist))
newlist = [[y[0] for y in mylist if y[1]==x] for x in values]
More Related Contents:
- How to group a list of tuples/objects by similar index/attribute in python?
- How to group elements in python by n elements [duplicate]
- Identify groups of consecutive numbers in a list
- Creating sublists [duplicate]
- Split a list of tuples into sub-lists of the same tuple field [duplicate]
- convert string to list [duplicate]
- How do i search for 2 of the same numbers in a list? (python) [closed]
- Unable to use convert strings into integers for a for loop
- How to remove an element from a list by index
- List of lists changes reflected across sublists unexpectedly
- Strange result when removing item from a list while iterating over it
- How to merge lists into a list of tuples?
- TypeError: ‘list’ object is not callable in python
- Difference between del, remove, and pop on lists
- Pythonic way to check if a list is sorted or not
- List comprehension vs. lambda + filter
- Python – use list as function parameters
- Append to a list defined in a tuple – is it a bug? [duplicate]
- String to list in Python
- How to extract parameters from a list and pass them to a function call [duplicate]
- case-insensitive list sorting, without lowercasing the result?
- How to add element in Python to the end of list using list.insert?
- Append integer to beginning of list in Python [duplicate]
- Efficient method to calculate the rank vector of a list in Python
- Duplicate each member in a list [duplicate]
- Initializing 2D array in Python
- How to multiply all integers inside list [duplicate]
- How to combine elements from two lists into a third?
- smartest way to join two lists into a formatted string
- Sum list of list elements in python like sql group by [duplicate]