Thank u, Chris!
This was actually what I’ve been looking for.
I still didn’t manage it perfectly to plot keys and values, since they are dict-types, but I’m on it!
You’re welcome. You may have to collect the keys and values? I’ve found that some plotting libraries get upset if you pass them iterables and it can be necessary to create an array instead.
with collect it works, but the plot won’t give me out a proper histogram…
I’m working with juliabox and tryed to make use of Plotly, but somehow that doesn’t work neither …
It feels like, need to spend ages 'till I get comfortable with Julia lol
Thanks, it looks like countmap is a good option. I’ve been wanting a stdlib function for this for a while, so it will be nice to get it once StatsBase functionality (presumably) gets merged into Statistics.
Elsewhere @andyferris has just pointed out to me that SplitApplyCombine has a much more general version of this operation as groupreduce. And there’s a specific special case called groupcount which does what you want.
It seems groupcount and countmap are basically the same, though countmap offers some algorithm choices.