MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
yields some indecipherable second element of each tuple. What I want to get back from that is:
import itertools as itr In : list(itr.groupby('1222311')) Out: [('1', <itertools._grouper at 0x3cae048>), ('2', <itertools._grouper at 0x3cae630>), ('3', <itertools._grouper at 0x3caedd8>), ('1', <itertools._grouper at 0x3cae1d0>)]
though the order of elements within the tuples is irrelevant.
[('1', 1), ('2', 3), ('3', 1), ('1', 2)]
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Need To Find FireFox Binary Path For Python Selenium On Windows 7||15||888|
|How does this Python sort work?||5||109|
|Getting Variable not defined error in Python||1||73|
|Mac OS X forensic tools - freeware RAM dump tool?||4||38|
Join the community of 500,000 technology professionals and ask your questions.