October 7 at 3:12 pm
- Link
"Groupby is very like the Unix uniq tool.
Generally (the documentation goes on to say) “the iterable needs to already be sorted on the same key function” but groupby is perfectly well defined when this isn’t the case. Here’s an artificial example showing groupby turning a random sequence into an alternating one." - marcell mars

