single |
==============
More Itertools
==============
Python's itertools library is a gem - you can compose elegant solutions
for a variety of problems with the functions it provides. In
``more-itertools``
we collect additional building blocks, recipes, and routines for working
with
Python iterables.
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Grouping | [chunked],
|
| | [ichunked],
|
| | [chunked_even],
|
| | [sliced],
|
| | [constrained_batches],
|
| | [distribute],
|
| | [divide],
|
| | [split_at],
|
| | [split_before],
|
| | [split_after],
|
| | [split_into],
|
| | [split_when],
|
| | [bucket],
|
| | [unzip],
|
| | [batched],
|
| | [grouper],
|
| | [partition],
|
| | [transpose]
|
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Lookahead and lookback | [spy],
|
| | [peekable],
|
| | [seekable]
|
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Windowing | [windowed],
|
| | [substrings],
|
| | [substrings_indexes],
|
| | [stagger],
|
| | [windowed_complete],
|
| | [pairwise],
|
| | [triplewise],
|
| | [sliding_window],
|
| | [subslices]
|
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Augmenting | [count_cycle],
|
| | [intersperse],
|
| | [padded],
|
| | [repeat_each],
|
| | [mark_ends],
|
| | [repeat_last],
|
| | [adjacent],
|
| | [groupby_transform],
|
| | [pad_none],
|
| | [ncycles]
|
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Combining | [collapse],
|
| | [sort_together],
|
|