Pivot Table/Groupby/Sum question

John Machin sjmachin at lexicon.net
Thu Dec 27 16:59:09 EST 2007


On Dec 28, 4:56 am, patrick.wa... at gmail.com wrote:

> from itertools import groupby

You seem to have overlooked this important sentence in the
documentation: "Generally, the iterable needs to already be sorted on
the same key function"



More information about the Python-list mailing list