Lines Matching refs:groupby
54 :func:`groupby` iterable[, keyfunc] sub-iterators grouped by value of keyfunc(v)
290 .. function:: groupby(iterable[, key])
298 The operation of :func:`groupby` is similar to the ``uniq`` filter in Unix. It
305 with :func:`groupby`. Because the source is shared, when the :func:`groupby`
312 for k, g in groupby(data, keyfunc):
316 :func:`groupby` is roughly equivalent to::
318 class groupby(object):
319 # [k for k, g in groupby('AAAABBBCCDAABBB')] --> A B C D A B
320 # [list(g) for k, g in groupby('AAAABBBCCD')] --> AAAA BBB CC D
712 g = groupby(iterable)
797 return imap(next, imap(itemgetter(1), groupby(iterable, key)))