PyDocs

Nav

Functional Programming Modules

groupby

itertools

function
  • groupby(iterable, key=None)
make an iterator that returns consecutive keys and groups from the iterable

iterable
  Elements to divide into groups according to the key function.
key
  A function for computing the group category for each element.
  If the key function is not specified or is None, the element itself
  is used for grouping.
0 Examples
No examples for itertools/groupby.
See Also
No see-alsos for itertools/groupby
0 Notes
No notes for groupby