Hacker News new | ask | show | jobs
by silvester23 1808 days ago
Yes, for itertools.groupby to work as most people would expect, the data needs to be sorted by the grouping key first. That may obviously cause a significant performance hit.