Lines Matching refs:groupby
56 :func:`groupby` iterable[, key] sub-iterators grouped by value of k…
381 .. function:: groupby(iterable, key=None)
389 The operation of :func:`groupby` is similar to the ``uniq`` filter in Unix. It
396 with :func:`groupby`. Because the source is shared, when the :func:`groupby`
403 for k, g in groupby(data, keyfunc):
407 :func:`groupby` is roughly equivalent to::
409 class groupby:
410 # [k for k, g in groupby('AAAABBBCCDAABBB')] --> A B C D A B
411 # [list(g) for k, g in groupby('AAAABBBCCD')] --> AAAA BBB CC D
751 g = groupby(iterable)
843 return map(next, map(operator.itemgetter(1), groupby(iterable, key)))