Good use for itertools.dropwhile and itertools.takewhile

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


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.


More information about the Python-list mailing list