-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Description
Add one or more examples to the docs of how to use OnlineStats with DTables, such as in joshday/OnlineStatsBase.jl#26 (comment):
julia> fun = fit!
fit! (generic function with 4 methods)
julia> v = [reduce(fun, [1,2,3], init=Mean()) for _ in 1:3]
3-element Vector{Mean{Float64, EqualWeight}}:
Mean: n=3 | value=2.0
Mean: n=3 | value=2.0
Mean: n=3 | value=2.0
julia> reduce(fun, v, init=Mean())
Mean: n=9 | value=2.0But where instead of [1,2,3], we pass in a DTable and specify cols as the columns we want to reduce over.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers