baumanno, I wrote some words on how to implement a
collections.Counter
in #python that can be compared to scalar values.To me, this is pretty cool, as it allows you to filter the counts based on a threshold. For instance,
ComparableCounter(...) > 10
would result in a new collection containing only values whose count is above 10.Any feedback is gladly received! 😀
https://baumanno.de/2024/05/a-comparable-counter-for-python/
Add comment