joshday / OnlineStats.jl

⚡ Single-pass algorithms for statistics
https://joshday.github.io/OnlineStats.jl/latest/
MIT License
831 stars 62 forks source link

Support `keys` and `values` on `GroupBy` #282

Closed schlichtanders closed 6 months ago

schlichtanders commented 6 months ago

GroupBy presents itself as a dictionary-like object. Also indexing works. Hence supporting keys and values makes sense

joshday commented 6 months ago

Since value(::GroupBy)::OrderedDict, I don't think I'll add this. An OnlineStat is an OnlineStat; I don't want to make any promises beyond that. I partially regret adding some of the convenience methods like mean(::Mean).