I've implemented the "chunked" iterator a million times. Glad to see I can just import this next time.
More Itertools
11–20 of 51 posts
Re: More Itertools
#12Re: More Itertools
#13itertools is a gem and has been since the 2.7 days. Glad to see people waking up to its powerful abstractions.
Re: More Itertools
#14What's the process for adding these to the Python's stdlib? Is it even possible to adopt a whole library such as this one?
For an idea of the process followed, look up PEP417 (Python Enhancement Proposal.
Re: More Itertools
#15What's the process for adding these to the Python's stdlib? Is it even possible to adopt a whole library such as this one?
Re: More Itertools
#16itertools is a gem and has been since the 2.7 days. Glad to see people waking up to its powerful abstractions.
Re: More Itertools
#17Re: More Itertools
#18Re: More Itertools
#19Usally, I'd cast my arrays into a pandas DF and then use the equivalent dataframe operations. To me, pandas and numpy might as well be part of the python stdlib.
How should I reason about the tradeoff of using something like this vs pandas/numpy ? Esp. with Numpy 2.0 supporting the string dtype.
Re: More Itertools
#20What's the process for adding these to the Python's stdlib? Is it even possible to adopt a whole library such as this one?
It must be possible, because the 'dataclasses' library used to be third-party.
Or maybe you mean the backport of dataclasses to 3.6 that is available on PyPI? That actually came after dataclasses was added to 3.7.
Source: I wrote dataclasses.