Good use for itertools.dropwhile and itertools.takewhile

MRAB python at mrabarnett.plus.com
Wed Dec 5 18:57:26 CET 2012


On 2012-12-05 17:04, Nick Mellor wrote:
> Hi Neil,
>
> Here's some sample data. The live data is about 300 minor variations on the sample data, about 20,000 lines.
>
[snip]
You have a duplicate:

> CELERY Mornington Peninsula IPM grower
> CELERY Mornington Peninsula IPM grower




More information about the Python-list mailing list