Good use for itertools.dropwhile and itertools.takewhile

Nick Mellor thebalancepro at gmail.com
Wed Dec 5 20:01:35 CET 2012


Neil,

Further down the data, found another edge case:

"Spring ONION from QLD"

Following the spec, the whole line should be description (description starts at first word that is not all caps.) This case breaks the latest groupby.

N



More information about the Python-list mailing list